[tracker] Fixed possible memory leak
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Fixed possible memory leak
- Date: Fri, 25 Sep 2009 09:20:52 +0000 (UTC)
commit 73a6b08ce4509fe3af811c2be877abf809c07173
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Sep 25 11:17:44 2009 +0200
Fixed possible memory leak
src/plugins/evolution/tracker-evolution-plugin.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 484f58d..05b76fb 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -1713,15 +1713,16 @@ static void
register_client (TrackerEvolutionPlugin *self)
{
TrackerEvolutionPluginPrivate *priv = TRACKER_EVOLUTION_PLUGIN_GET_PRIVATE (self);
- ClientRegistry *info = g_slice_new0 (ClientRegistry);
+ ClientRegistry *info;
const gchar *query;
- info->self = self; /* weak */
-
if (!priv->client) {
return;
}
+ info = g_slice_new0 (ClientRegistry);
+ info->self = self; /* weak */
+
priv->total_popped = 0;
priv->of_total = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]