diff libpurple/protocols/gg/gg.c @ 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 a338acd14365
children 3e437e86bd6e ab6d2763b8d8
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;
 	}