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



commit 5f16855d0c54b0c6f8787b97793e510b849b8a61
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]