# HG changeset patch # User Richard Laager # Date 1180490498 0 # Node ID 3cdca2d426199f548acdd703ea0d8d5cb5ee9144 # Parent c6233773ce1d1bf80816070da3f32f1920381cfa Fix a small memory leak and eliminate a double-free. diff -r c6233773ce1d -r 3cdca2d42619 libpurple/protocols/gg/gg.c --- a/libpurple/protocols/gg/gg.c Wed May 30 01:43:57 2007 +0000 +++ b/libpurple/protocols/gg/gg.c Wed May 30 02:01:38 2007 +0000 @@ -253,8 +253,8 @@ /* */ -/* static void ggp_callback_buddylist_save_ok(PurpleConnection *gc, gchar *file) {{{ */ -static void ggp_callback_buddylist_save_ok(PurpleConnection *gc, gchar *file) +/* static void ggp_callback_buddylist_save_ok(PurpleConnection *gc, const char *file) {{{ */ +static void ggp_callback_buddylist_save_ok(PurpleConnection *gc, const char *file) { PurpleAccount *account = purple_connection_get_account(gc); @@ -277,7 +277,7 @@ purple_debug_error("gg", "Could not open file: %s\n", file); purple_notify_error(account, _("Couldn't open file"), msg, NULL); g_free(msg); - g_free(file); + g_free(buddylist); return; }