app: clear more dangling weak pointers.
This commit is contained in:
parent
c8c17a3509
commit
f2d5ff446a
2 changed files with 6 additions and 0 deletions
|
|
@ -281,6 +281,8 @@ gimp_color_dialog_finalize (GObject *object)
|
|||
GimpColorDialog *dialog = GIMP_COLOR_DIALOG (object);
|
||||
GimpViewableDialog *viewable_dialog = GIMP_VIEWABLE_DIALOG (dialog);
|
||||
|
||||
g_clear_weak_pointer (&dialog->active_image);
|
||||
|
||||
if (dialog->user_context_aware && viewable_dialog->context)
|
||||
{
|
||||
GimpContext *user_context = viewable_dialog->context->gimp->user_context;
|
||||
|
|
|
|||
|
|
@ -322,6 +322,10 @@ gimp_color_editor_dispose (GObject *object)
|
|||
{
|
||||
GimpColorEditor *editor = GIMP_COLOR_EDITOR (object);
|
||||
|
||||
g_clear_weak_pointer (&editor->active_display);
|
||||
g_clear_weak_pointer (&editor->active_image);
|
||||
g_clear_weak_pointer (&editor->active_shell);
|
||||
|
||||
if (editor->context)
|
||||
gimp_docked_set_context (GIMP_DOCKED (editor), NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue