aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore-gtk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-05 11:15:09 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-05 11:15:09 +0000
commitea72d3b17a87b928413e6440a45267b65cb1c850 (patch)
treee8c351bfe23a9286a8a02bd468d4f93a3f034348 /src/namestore/gnunet-namestore-gtk.c
parent89ebafb9a1264e7a336cc348ce2c2426898da3a4 (diff)
downloadgnunet-gtk-ea72d3b17a87b928413e6440a45267b65cb1c850.tar.gz
gnunet-gtk-ea72d3b17a87b928413e6440a45267b65cb1c850.zip
-fix NPE
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r--src/namestore/gnunet-namestore-gtk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index 4483b0c2..e54d0972 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -2540,14 +2540,6 @@ cleanup_task (void *cls,
2540 GNUNET_free (moc->data); 2540 GNUNET_free (moc->data);
2541 GNUNET_free (moc); 2541 GNUNET_free (moc);
2542 } 2542 }
2543 if (NULL != n2r)
2544 {
2545 GNUNET_CONTAINER_multihashmap_iterate (n2r,
2546 &release_ri,
2547 NULL);
2548 GNUNET_CONTAINER_multihashmap_destroy (n2r);
2549 n2r = NULL;
2550 }
2551 gtk_tree_store_clear (ts); 2543 gtk_tree_store_clear (ts);
2552 if (NULL != namestore) 2544 if (NULL != namestore)
2553 { 2545 {
@@ -2569,6 +2561,14 @@ cleanup_task (void *cls,
2569 GNUNET_IDENTITY_disconnect (identity); 2561 GNUNET_IDENTITY_disconnect (identity);
2570 identity = NULL; 2562 identity = NULL;
2571 } 2563 }
2564 if (NULL != n2r)
2565 {
2566 GNUNET_CONTAINER_multihashmap_iterate (n2r,
2567 &release_ri,
2568 NULL);
2569 GNUNET_CONTAINER_multihashmap_destroy (n2r);
2570 n2r = NULL;
2571 }
2572} 2572}
2573 2573
2574 2574