diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-08-31 17:51:52 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-01 02:34:02 +0800 |
commit | d3df6091ffbf0f60f1468fd75afdc6939419d60d (patch) | |
tree | 8a71c94aa0deeb245b4e2af38e111fdb71df4dc2 | |
parent | 8750a9c38420ec0fda448f715d974580a023f7a3 (diff) | |
download | gsoc2013-epiphany-d3df6091ffbf0f60f1468fd75afdc6939419d60d.tar.gz gsoc2013-epiphany-d3df6091ffbf0f60f1468fd75afdc6939419d60d.tar.zst gsoc2013-epiphany-d3df6091ffbf0f60f1468fd75afdc6939419d60d.zip |
ephy-overview-store: add missing dispose implementation
-rw-r--r-- | 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 882073786..9733597b8 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, |