aboutsummaryrefslogtreecommitdiff
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
parent89ebafb9a1264e7a336cc348ce2c2426898da3a4 (diff)
downloadgnunet-gtk-ea72d3b17a87b928413e6440a45267b65cb1c850.tar.gz
gnunet-gtk-ea72d3b17a87b928413e6440a45267b65cb1c850.zip
-fix NPE
-rw-r--r--contrib/gnunet_identity_gtk_about_window.glade2
-rw-r--r--src/namestore/gnunet-namestore-gtk.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/contrib/gnunet_identity_gtk_about_window.glade b/contrib/gnunet_identity_gtk_about_window.glade
index 097e8709..a75a926a 100644
--- a/contrib/gnunet_identity_gtk_about_window.glade
+++ b/contrib/gnunet_identity_gtk_about_window.glade
@@ -91,7 +91,7 @@ Daniel Nylander &lt;po@danielnylander.se&gt;</property>
91 <object class="GtkLabel" id="about_name_version_label"> 91 <object class="GtkLabel" id="about_name_version_label">
92 <property name="visible">True</property> 92 <property name="visible">True</property>
93 <property name="can_focus">False</property> 93 <property name="can_focus">False</property>
94 <property name="label">GNUnet-Peerinfo-GTK 0.9.3</property> 94 <property name="label">GNUnet-Peerinfo-GTK 0.9.5</property>
95 <attributes> 95 <attributes>
96 <attribute name="weight" value="bold"/> 96 <attribute name="weight" value="bold"/>
97 <attribute name="size" value="200"/> 97 <attribute name="size" value="200"/>
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