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



commit f5b0ed7b701b807d8a03939b73e1122fa986be76
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 8ac92de..ffdd1f0 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]