summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-bmp.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 /gdk-pixbuf/io-bmp.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 'gdk-pixbuf/io-bmp.c')
-rw-r--r--gdk-pixbuf/io-bmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 0e72e599c5..d0347c963a 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -691,8 +691,7 @@ static gboolean gdk_pixbuf__bmp_image_stop_load(gpointer data, GError **error)
g_return_val_if_fail(context != NULL, TRUE);
- if (context->Colormap != NULL)
- g_free(context->Colormap);
+ g_free(context->Colormap);
if (context->pixbuf)
g_object_unref(context->pixbuf);