# HG changeset patch # User Sadrul Habib Chowdhury # Date 1177783346 0 # Node ID bc03699814a1fe542938a81279596513b2f414a8 # Parent 63a1de71e389c326a8a4a5cd7fb0d94050b4c990 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 diff -r 63a1de71e389 -r bc03699814a1 pidgin/gtkaccount.c --- 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)