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:
parent
fb38049f4d
commit
1708e2eb04
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue