[epiphany/in-tab-overview] ephy-overview-store: add missing dispose implementation
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/in-tab-overview] ephy-overview-store: add missing dispose implementation
- Date: Fri, 31 Aug 2012 12:07:32 +0000 (UTC)
commit 6458216ef6699057932399f1417b10db88ac6896
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Aug 31 12:51:52 2012 +0300
ephy-overview-store: add missing dispose implementation
lib/widgets/ephy-overview-store.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-overview-store.c b/lib/widgets/ephy-overview-store.c
index 8820737..9733597 100644
--- a/lib/widgets/ephy-overview-store.c
+++ b/lib/widgets/ephy-overview-store.c
@@ -90,12 +90,26 @@ ephy_overview_store_get_property (GObject *object,
}
static void
+ephy_overview_store_dispose (GObject *object)
+{
+ EphyOverviewStorePrivate *priv = EPHY_OVERVIEW_STORE (object)->priv;
+
+ if (priv->history_service)
+ g_clear_object (&priv->history_service);
+ if (priv->default_icon)
+ g_clear_object (&priv->default_icon);
+
+ G_OBJECT_CLASS (ephy_overview_store_parent_class)->dispose (object);
+}
+
+static void
ephy_overview_store_class_init (EphyOverviewStoreClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->set_property = ephy_overview_store_set_property;
object_class->get_property = ephy_overview_store_get_property;
+ object_class->dispose = ephy_overview_store_dispose;
g_object_class_install_property (object_class,
PROP_HISTORY_SERVICE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]