[gnome-documents] miner: plug a couple of memory leaks
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] miner: plug a couple of memory leaks
- Date: Fri, 16 Sep 2011 00:36:38 +0000 (UTC)
commit b4e6abe4ca5ec03473768b5791466cffc775478a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 15 20:36:17 2011 -0400
miner: plug a couple of memory leaks
src/miner/gd-gdata-miner.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index e7cecf0..5d9ec34 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -749,6 +749,8 @@ account_miner_job_query_existing (AccountMinerJob *job,
g_strdup (tracker_sparql_cursor_get_string (cursor, 1, NULL)),
g_strdup (tracker_sparql_cursor_get_string (cursor, 0, NULL)));
}
+
+ g_object_unref (cursor);
}
static void
@@ -1007,6 +1009,7 @@ cleanup_job_do_cleanup (CleanupJob *job)
}
g_string_append (update, " }");
+ g_object_unref (cursor);
/* actually remove everything we have to remove */
tracker_sparql_connection_update (self->priv->connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]