free the dialog's private data struct using a weak reference, not in a
2004-12-18 Sven Neumann <sven@gimp.org> * app/dialogs/resize-dialog.c: free the dialog's private data struct using a weak reference, not in a "destroy" handler. Should fix bug #161472. * app/dialogs/print-size-dialog.c * app/dialogs/scale-dialog.c: same change here.
This commit is contained in:
committed by
Sven Neumann
parent
014d616d44
commit
0ac7b4b1fc
@ -145,9 +145,7 @@ resize_dialog_new (GimpViewable *viewable,
|
||||
|
||||
private = g_new0 (ResizeDialog, 1);
|
||||
|
||||
g_signal_connect_swapped (dialog, "destroy",
|
||||
G_CALLBACK (g_free),
|
||||
private);
|
||||
g_object_weak_ref (G_OBJECT (dialog), (GWeakNotify) g_free, private);
|
||||
|
||||
private->viewable = viewable;
|
||||
private->old_width = width;
|
||||
|
||||
Reference in New Issue
Block a user