Avoid a null deref when clearing mail notifications. Refs #9345.

Wed, 01 Jul 2009 03:53:48 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Wed, 01 Jul 2009 03:53:48 +0000
changeset 27470
328658067ce6
parent 27468
b7e7e8cede60
child 27471
47b1160dd699
child 27474
60afa581988d

Avoid a null deref when clearing mail notifications. Refs #9345.

pidgin/gtknotify.c file | annotate | diff | comparison | revisions
--- 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);

mercurial