changeset 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 40a670f599ae
children 76cf0b261e25 47a2b94cf059
files pidgin/gtknotify.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);