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
@ -113,9 +113,7 @@ print_size_dialog_new (GimpImage *image,
|
||||
|
||||
private = g_new0 (PrintSizeDialog, 1);
|
||||
|
||||
g_signal_connect_swapped (dialog, "destroy",
|
||||
G_CALLBACK (g_free),
|
||||
private);
|
||||
g_object_weak_ref (G_OBJECT (dialog), (GWeakNotify) g_free, private);
|
||||
|
||||
g_signal_connect (dialog, "response",
|
||||
G_CALLBACK (print_size_dialog_response),
|
||||
|
||||
Reference in New Issue
Block a user