[Xfce4-commits] [apps/xfdashboard] 14/31: Free property 'favourites' at XfdashboardQuicklaunch when object instance is disposed

noreply at xfce.org noreply at xfce.org
Thu Jun 11 19:57:09 CEST 2015


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to annotated tag 0.4.1
in repository apps/xfdashboard.

commit 55fe657eb1087a208df9b924d5289f51a76cfcf4
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