diff src/gtkutils.c @ 13102:5828d42e8684

[gaim-migrate @ 15464] g_strdup() and free the label for a menu action. This way, if a plugin builds the label dynamically, we won't leak. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 19:35:32 +0000
parents 094d4b49e1c9
children 079f7a452e3a
line wrap: on
line diff
--- a/src/gtkutils.c	Thu Feb 02 19:17:49 2006 +0000
+++ b/src/gtkutils.c	Thu Feb 02 19:35:32 2006 +0000
@@ -1739,6 +1739,6 @@
 			g_list_free(act->children);
 			act->children = NULL;
 		}
-		g_free(act);
+		gaim_menu_action_free(act);
 	}
 }