[Xfce4-commits] [apps/xfdashboard] 03/20: Free property 'favourites' at XfdashboardQuicklaunch when object instance is disposed
noreply at xfce.org
noreply at xfce.org
Sat May 16 21:21:12 CEST 2015
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 21384cfea709be58f29c406e9c90cf1bead57640
Author: Stephan Haller <nomad at froevel.de>
Date: Sat May 16 19:17:46 2015 +0200
Free property 'favourites' at XfdashboardQuicklaunch when object instance is disposed
---
xfdashboard/quicklaunch.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/xfdashboard/quicklaunch.c b/xfdashboard/quicklaunch.c
index 242aaa8..e69f978 100644
--- a/xfdashboard/quicklaunch.c
+++ b/xfdashboard/quicklaunch.c
@@ -2143,20 +2143,29 @@ static void _xfdashboard_quicklaunch_dispose(GObject *inObject)
XfdashboardQuicklaunchPrivate *priv=XFDASHBOARD_QUICKLAUNCH(inObject)->priv;
/* Release our allocated variables */
- if(priv->xfconfChannel) priv->xfconfChannel=NULL;
-
if(priv->xfconfFavouritesBindingID)
{
xfconf_g_property_unbind(priv->xfconfFavouritesBindingID);
priv->xfconfFavouritesBindingID=0;
}
+ if(priv->xfconfChannel)
+ {
+ priv->xfconfChannel=NULL;
+ }
+
if(priv->appDB)
{
g_object_unref(priv->appDB);
priv->appDB=NULL;
}
+ if(priv->favourites)
+ {
+ xfconf_array_free(priv->favourites);
+ priv->favourites=NULL;
+ }
+
/* Call parent's class dispose method */
G_OBJECT_CLASS(xfdashboard_quicklaunch_parent_class)->dispose(inObject);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list