changeset 17457:3cdca2d42619

Fix a small memory leak and eliminate a double-free.
author Richard Laager <rlaager@wiktel.com>
date Wed, 30 May 2007 02:01:38 +0000
parents c6233773ce1d
children 98ef77c2455f f21b9614ec04
files libpurple/protocols/gg/gg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}