Mercurial > pidgin
changeset 26197:bdb34fc5d889
Fix a crash when creating an account with a prpl with no protocol_options. Fixes #8747.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 02:10:44 +0000 |
parents | 399776a9ad98 |
children | ea6b3aa222f1 |
files | pidgin/gtkaccount.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkaccount.c Sat Mar 21 02:20:52 2009 +0000 +++ b/pidgin/gtkaccount.c Mon Mar 23 02:10:44 2009 +0000 @@ -756,10 +756,6 @@ dialog->protocol_frame = NULL; } - if (dialog->prpl_info == NULL || - dialog->prpl_info->protocol_options == NULL) - return; - while (dialog->protocol_opt_entries != NULL) { ProtocolOptEntry *opt_entry = dialog->protocol_opt_entries->data; g_free(opt_entry->setting); @@ -767,6 +763,10 @@ dialog->protocol_opt_entries = g_list_delete_link(dialog->protocol_opt_entries, dialog->protocol_opt_entries); } + if (dialog->prpl_info == NULL || + dialog->prpl_info->protocol_options == NULL) + return; + account = dialog->account; /* Build the protocol options frame. */