changeset 22108:e21cdaffbcdb

Plug a small leak.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 14 Jan 2008 19:42:14 +0000
parents bfe1854bbf87
children dfa337b45aec
files libpurple/account.c pidgin/gtkblist.c
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/account.c	Mon Jan 14 07:13:49 2008 +0000
+++ b/libpurple/account.c	Mon Jan 14 19:42:14 2008 +0000
@@ -752,7 +752,7 @@
 
 	current_error = g_new0(PurpleConnectionErrorInfo, 1);
 	current_error->type = type;
-	current_error->description = g_strdup(description);
+	current_error->description = description;
 
 	set_current_error(account, current_error);
 }
--- a/pidgin/gtkblist.c	Mon Jan 14 07:13:49 2008 +0000
+++ b/pidgin/gtkblist.c	Mon Jan 14 19:42:14 2008 +0000
@@ -4143,12 +4143,11 @@
 static void pidgin_blist_new_list(PurpleBuddyList *blist)
 {
 	PidginBuddyList *gtkblist;
-	PidginBuddyListPrivate *priv;
 
 	gtkblist = g_new0(PidginBuddyList, 1);
 	gtkblist->connection_errors = g_hash_table_new_full(g_direct_hash,
 												g_direct_equal, NULL, g_free);
-	gtkblist->priv = priv = g_new0(PidginBuddyListPrivate, 1);
+	gtkblist->priv = g_new0(PidginBuddyListPrivate, 1);
 
 	blist->ui_data = gtkblist;
 }