[epiphany/history-rewrite: 16/26] EphyHistoryService: don't leak the history-filename string property



commit 1c52c45c93376998461a962c8f49146ae084c203
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Jul 5 13:14:11 2011 +0300

    EphyHistoryService: don't leak the history-filename string property

 lib/history/ephy-history-service.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 2b8b2c0..b4ff276 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -157,6 +157,11 @@ ephy_history_service_finalize (GObject *self)
     g_main_context_unref (priv->history_thread_main_context);
   }
 
+  if (NULL != priv->history_filename) {
+    g_free (priv->history_filename);
+    priv->history_filename = NULL;
+  }
+
   G_OBJECT_CLASS (ephy_history_service_parent_class)->finalize (self);
 }
 



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