fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 21 Oct 2009 20:11:13 +0000 (20:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 21 Oct 2009 20:11:13 +0000 (20:11 +0000)
src/datastore/plugin_datastore_sqlite.c

index 3f05280a84e634378155a1e3814daba737b04c0c..2e8b53e21c8eee0307b53f15c24b895310666234 100644 (file)
@@ -1634,10 +1634,10 @@ libgnunet_plugin_datastore_sqlite_done (void *cls)
   if (plugin->drop_on_shutdown)
     fn = GNUNET_strdup (plugin->fn);
   database_shutdown (plugin);
-  plugin->env = NULL; 
-  plugin->payload = 0;
   GNUNET_STATISTICS_destroy (plugin->statistics);
   GNUNET_ARM_stop_services (plugin->env->cfg, plugin->env->sched, "statistics", NULL);
+  plugin->env = NULL; 
+  plugin->payload = 0;
   GNUNET_free (api);
   if (fn != NULL)
     {