gtk: Fix null dereference in stats

This fixes the bug reported to Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786704

Change-Id: Iabe19c11067318d78664a17fa00d6a4d1998250c
Reviewed-on: https://code.wireshark.org/review/15948
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
This commit is contained in:
Balint Reczey 2016-06-15 15:40:15 -07:00
parent fb38049f4d
commit 1708e2eb04
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ clear_node_pr(stat_node* n)
clear_node_pr(c);
}
if (n->pr->iter) {
if (n->pr && n->pr->iter) {
gtk_tree_store_remove(n->st->pr->store, n->pr->iter);
n->pr->iter = NULL;
}