[Xfce4-commits] [apps/xfdashboard] 07/20: Free icon name after setting button icon at XfdashboardApplicationButton
noreply at xfce.org
noreply at xfce.org
Sat May 16 21:21:16 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 f2f062abdb838244f9308c3db821f3dba5c5c609
Author: Stephan Haller <nomad at froevel.de>
Date: Sat May 16 19:32:32 2015 +0200
Free icon name after setting button icon at XfdashboardApplicationButton
---
xfdashboard/application-button.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/xfdashboard/application-button.c b/xfdashboard/application-button.c
index c675601..97d0b67 100644
--- a/xfdashboard/application-button.c
+++ b/xfdashboard/application-button.c
@@ -120,7 +120,7 @@ static void _xfdashboard_application_button_update_text(XfdashboardApplicationBu
static void _xfdashboard_application_button_update_icon(XfdashboardApplicationButton *self)
{
XfdashboardApplicationButtonPrivate *priv;
- const gchar *iconName;
+ gchar *iconName;
g_return_if_fail(XFDASHBOARD_IS_APPLICATION_BUTTON(self));
@@ -140,10 +140,13 @@ static void _xfdashboard_application_button_update_icon(XfdashboardApplicationBu
}
}
- if(!iconName) iconName="gtk-missing-image";
+ if(!iconName) iconName=g_strdup("gtk-missing-image");
/* Set up button and release allocated resources */
if(iconName) xfdashboard_button_set_icon(XFDASHBOARD_BUTTON(self), iconName);
+
+ /* Release allocated resources */
+ if(iconName) g_free(iconName);
}
/* The app info has changed */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list