Mercurial > pidgin.yaz
diff pidgin/gtknotify.c @ 27318:8ecd6945a96a
Avoid a null deref when clearing mail notifications. Refs #9345.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 01 Jul 2009 03:53:48 +0000 |
parents | 25db53cfc12c |
children | ecdc58da4cdd |
line wrap: on
line diff
--- 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);