From: <sa...@us...> - 2006-09-07 22:19:00
|
Revision: 17184 http://svn.sourceforge.net/gaim/?rev=17184&view=rev Author: sadrul Date: 2006-09-07 15:18:54 -0700 (Thu, 07 Sep 2006) Log Message: ----------- Plug a small memory-leak, and mark a string for translation. Modified Paths: -------------- trunk/gtk/gtkdialogs.c Modified: trunk/gtk/gtkdialogs.c =================================================================== --- trunk/gtk/gtkdialogs.c 2006-09-07 17:53:25 UTC (rev 17183) +++ trunk/gtk/gtkdialogs.c 2006-09-07 22:18:54 UTC (rev 17184) @@ -1001,10 +1001,17 @@ } } +static void free_ggmo(struct _GaimGroupMergeObject *ggp) +{ + g_free(ggp->new_name); + g_free(ggp); +} + static void gaim_gtkdialogs_merge_groups_cb(struct _GaimGroupMergeObject *GGP) { gaim_blist_rename_group(GGP->parent, GGP->new_name); + free_ggmo(GGP); } void @@ -1017,8 +1024,8 @@ g_return_if_fail(new_name != NULL); text = g_strdup_printf( - "You are about to merge the group called %s into the group " - "called %s. Do you want to continue?", source->name, new_name); + _("You are about to merge the group called %s into the group " + "called %s. Do you want to continue?"), source->name, new_name); ggp = g_new(struct _GaimGroupMergeObject, 1); ggp->parent = source; @@ -1026,7 +1033,7 @@ gaim_request_action(source, NULL, _("Merge Groups"), text, 0, ggp, 2, _("_Merge Groups"), G_CALLBACK(gaim_gtkdialogs_merge_groups_cb), - _("Cancel"), NULL); + _("Cancel"), G_CALLBACK(free_ggmo)); g_free(text); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |