# HG changeset patch # User Paul Aurich # Date 1246420428 0 # Node ID 328658067ce6f8d7f689b4101d0642f81bfed6c5 # Parent b7e7e8cede60a51140f519654992048c07d624e1 Avoid a null deref when clearing mail notifications. Refs #9345. diff -r b7e7e8cede60 -r 328658067ce6 pidgin/gtknotify.c --- a/pidgin/gtknotify.c Wed Jul 01 00:18:23 2009 +0000 +++ b/pidgin/gtknotify.c Wed Jul 01 03:53:48 2009 +0000 @@ -549,7 +549,7 @@ advanced = FALSE; gtk_tree_model_get(GTK_TREE_MODEL(treemodel), &iter, PIDGIN_MAIL_DATA, &data, -1); - if (data->account == account) { + if (data && data->account == account) { if (clear) { #if GTK_CHECK_VERSION(2,2,0) advanced = gtk_tree_store_remove(treemodel, &iter);