Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
13101:094d4b49e1c9 | 13102:5828d42e8684 |
---|---|
1737 gaim_gtk_append_menu_action(submenu, act, object); | 1737 gaim_gtk_append_menu_action(submenu, act, object); |
1738 } | 1738 } |
1739 g_list_free(act->children); | 1739 g_list_free(act->children); |
1740 act->children = NULL; | 1740 act->children = NULL; |
1741 } | 1741 } |
1742 g_free(act); | 1742 gaim_menu_action_free(act); |
1743 } | 1743 } |
1744 } | 1744 } |