changeset 16589:bc03699814a1

Part of the patch in ticket #383: - Fix the argument type on set_dialog_icon's data - Respect the return value of purple_imgstore_unref() to avoid a crash committer: Richard Laager <rlaager@wiktel.com>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Apr 2007 18:02:26 +0000
parents 63a1de71e389
children 66f0cda796e1
files pidgin/gtkaccount.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkaccount.c	Sat Apr 28 18:00:06 2007 +0000
+++ b/pidgin/gtkaccount.c	Sat Apr 28 18:02:26 2007 +0000
@@ -194,11 +194,11 @@
 }
 
 static void
-set_dialog_icon(AccountPrefsDialog *dialog, gpointer *data, size_t len, gchar *new_icon_path)
+set_dialog_icon(AccountPrefsDialog *dialog, gpointer data, size_t len, gchar *new_icon_path)
 {
 	GdkPixbuf *pixbuf = NULL;
 
-	purple_imgstore_unref(dialog->icon_img);
+	dialog->icon_img = purple_imgstore_unref(dialog->icon_img);
 	if (data != NULL)
 	{
 		if (len > 0)