changeset 13172:12d960995cdc

[gaim-migrate @ 15535] SF Patch #1414306 from Sadrul Don't free dialog before we're done with it. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 08 Feb 2006 04:13:10 +0000
parents 18d320fdf28c
children 07ecd51f1f07
files src/gtksavedstatuses.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksavedstatuses.c	Wed Feb 08 04:10:14 2006 +0000
+++ b/src/gtksavedstatuses.c	Wed Feb 08 04:13:10 2006 +0000
@@ -764,7 +764,6 @@
 
 	gtk_widget_destroy(dialog->window);
 	g_free(dialog->original_title);
-	g_free(dialog);
 
 	if (status_window != NULL)
 	  add_status_to_saved_status_list(status_window->model, saved_status);
@@ -772,6 +771,7 @@
 	/* If they clicked on "Save & Use" or "Use," then activate the status */
 	if (button != dialog->save_button)
 		gaim_savedstatus_activate(saved_status);
+	g_free(dialog);
 }
 
 static void