pidgin: 97e156c1: Fix a crash that occurs when you try to ...

datallah at pidgin.im datallah at pidgin.im
Thu Jul 17 20:26:10 EDT 2008


-----------------------------------------------------------------
Revision: 97e156c1c2ef4aabc8926ff845b42b911a476dd0
Ancestor: 2dfa29ca12fd33d175387e43772c3fba490cb287
Author: datallah at pidgin.im
Date: 2008-07-18T00:20:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/97e156c1c2ef4aabc8926ff845b42b911a476dd0

Modified files:
        pidgin/gtkaccount.c

ChangeLog: 

Fix a crash that occurs when you try to edit an account and no prpls are available. Fixes #6355.

-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c	bdb8840f66cca141b553cee14f36477e75a71336
+++ pidgin/gtkaccount.c	8caa4630fc4d3a0b432393c8955edb27408a2931
@@ -1186,7 +1186,6 @@ ok_account_prefs_cb(GtkWidget *w, Accoun
 	char *tmp;
 	gboolean new_acct = FALSE, icon_change = FALSE;
 	PurpleAccount *account;
-	PurplePluginProtocolInfo *prpl_info;
 
 	/* Build the username string. */
 	username = g_strdup(gtk_entry_get_text(GTK_ENTRY(dialog->screenname_entry)));
@@ -1254,8 +1253,7 @@ ok_account_prefs_cb(GtkWidget *w, Accoun
 		purple_account_set_alias(account, NULL);
 
 	/* Buddy Icon */
-	prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(dialog->plugin);
-	if (prpl_info != NULL && prpl_info->icon_spec.format != NULL)
+	if (dialog->prpl_info != NULL && dialog->prpl_info->icon_spec.format != NULL)
 	{
 		const char *filename;
 


More information about the Commits mailing list