[tracker-miner-chatlog] main: Unref pools before exit
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miner-chatlog] main: Unref pools before exit
- Date: Sun, 17 Jan 2016 20:40:10 +0000 (UTC)
commit 2635ac716a56acaf05ca50edfeb9656250aacf6e
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jan 17 20:30:49 2016 +0100
main: Unref pools before exit
This largely reduces the amount of memory reported as possibly
lost, which might hide other more real concerns.
src/main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 56ba5a6..1bf3e4f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
*/
#include <glib-unix.h>
+#include "entity-pool.h"
#include "miner.h"
static gboolean
@@ -67,5 +68,9 @@ main (int argc,
loop = g_main_loop_new (NULL, FALSE);
initialize_signal_handler (loop);
g_main_loop_run (loop);
+
+ g_object_unref (tmc_entity_pool_contacts_get ());
+ g_object_unref (tmc_entity_pool_channels_get ());
+
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]