# HG changeset patch # User Paul Aurich # Date 1246420428 0 # Node ID 8ecd6945a96a19e28863f3d94ac47f5e3c6b2a1e # Parent 40a670f599ae8a03addcbb77e18cc6442c072e45 Avoid a null deref when clearing mail notifications. Refs #9345. diff -r 40a670f599ae -r 8ecd6945a96a 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);