summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-03-09 21:57:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-03-09 21:57:37 +0000
commit82ce59cd0fd65f4d3b13dc4c305fc6d8ec44a12c (patch)
tree59d060f22217bda52a711dbada1b7c771ddca617 /gtk/gtkcellrendererpixbuf.c
parenta1e455446281f6a6a1a4eac14cd064cd9cfa93a7 (diff)
downloadgtk+-82ce59cd0fd65f4d3b13dc4c305fc6d8ec44a12c.tar.gz
Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,
2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 1575b4cd70..1034ebaf3f 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -336,8 +336,7 @@ gtk_cell_renderer_pixbuf_set_property (GObject *object,
priv->stock_size = g_value_get_uint (value);
break;
case PROP_STOCK_DETAIL:
- if (priv->stock_detail)
- g_free (priv->stock_detail);
+ g_free (priv->stock_detail);
priv->stock_detail = g_value_dup_string (value);
break;
case PROP_ICON_NAME: