Commit 0ac7b4b1 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent 014d616d
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.
2004-12-18 Sven Neumann <sven@gimp.org>
* app/dialogs/quit-dialog.c: marked a message for translation that
......
......@@ -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),
......
......@@ -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;
......
......@@ -126,9 +126,7 @@ scale_dialog_new (GimpViewable *viewable,
private = g_new0 (ScaleDialog, 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->interpolation = interpolation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment