[Xfce4-commits] [apps/xfdashboard] 18/20: Free GFile object at XfdashboardThemeCss

noreply at xfce.org noreply at xfce.org
Sat May 16 21:21:27 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 436890dcc080703e42d8808f19b7b23d45b939bb
Author: Stephan Haller <nomad at froevel.de>
Date:   Sat May 16 20:22:04 2015 +0200

    Free GFile object at XfdashboardThemeCss
---
 xfdashboard/theme-css.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/xfdashboard/theme-css.c b/xfdashboard/theme-css.c
index e8e7984..e3422f5 100644
--- a/xfdashboard/theme-css.c
+++ b/xfdashboard/theme-css.c
@@ -2581,6 +2581,10 @@ gboolean xfdashboard_theme_css_add_file(XfdashboardThemeCSS *self,
 	if(error)
 	{
 		g_propagate_error(outError, error);
+
+		/* Release allocated resources */
+		g_object_unref(file);
+
 		return(FALSE);
 	}
 
@@ -2594,6 +2598,10 @@ gboolean xfdashboard_theme_css_add_file(XfdashboardThemeCSS *self,
 	if(error)
 	{
 		g_propagate_error(outError, error);
+
+		/* Release allocated resources */
+		g_object_unref(file);
+
 		return(FALSE);
 	}
 
@@ -2621,6 +2629,9 @@ gboolean xfdashboard_theme_css_add_file(XfdashboardThemeCSS *self,
 					g_list_length(priv->styles));
 	}
 
+	/* Release allocated resources */
+	g_object_unref(file);
+
 	return(TRUE);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list