gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6189 - GNUnet/src/applications/fs/gap


From: gnunet
Subject: [GNUnet-SVN] r6189 - GNUnet/src/applications/fs/gap
Date: Thu, 7 Feb 2008 00:52:00 -0700 (MST)

Author: grothoff
Date: 2008-02-07 00:51:59 -0700 (Thu, 07 Feb 2008)
New Revision: 6189

Modified:
   GNUnet/src/applications/fs/gap/anonymity.c
   GNUnet/src/applications/fs/gap/fs_dht.c
Log:
release stats

Modified: GNUnet/src/applications/fs/gap/anonymity.c
===================================================================
--- GNUnet/src/applications/fs/gap/anonymity.c  2008-02-07 07:46:55 UTC (rev 
6188)
+++ GNUnet/src/applications/fs/gap/anonymity.c  2008-02-07 07:51:59 UTC (rev 
6189)
@@ -104,7 +104,11 @@
 GNUNET_FS_ANONYMITY_done ()
 {
   if (traffic != NULL)
-    coreAPI->release_service (traffic);
+    {
+      coreAPI->release_service (traffic);
+      traffic = NULL;
+    }
+  coreAPI = NULL;
 }
 
 /* end of anonymity.c */

Modified: GNUnet/src/applications/fs/gap/fs_dht.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs_dht.c     2008-02-07 07:46:55 UTC (rev 
6188)
+++ GNUnet/src/applications/fs/gap/fs_dht.c     2008-02-07 07:51:59 UTC (rev 
6189)
@@ -280,6 +280,11 @@
       GNUNET_thread_stop_sleep (thread);
       GNUNET_thread_join (thread, &unused);
     }
+  if (stats != NULL)
+    {
+      coreAPI->release_service (stats);
+      stats = NULL;
+    }
   if (dht != NULL)
     coreAPI->release_service (dht);
   dht = NULL;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]