diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-03-09 21:57:37 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-03-09 21:57:37 +0000 |
commit | 82ce59cd0fd65f4d3b13dc4c305fc6d8ec44a12c (patch) | |
tree | 59d060f22217bda52a711dbada1b7c771ddca617 /gdk-pixbuf/io-ras.c | |
parent | a1e455446281f6a6a1a4eac14cd064cd9cfa93a7 (diff) | |
download | gtk+-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-ras.c')
-rw-r--r-- | gdk-pixbuf/io-ras.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdk-pixbuf/io-ras.c b/gdk-pixbuf/io-ras.c index b03a4fb978..9b8a7d628f 100644 --- a/gdk-pixbuf/io-ras.c +++ b/gdk-pixbuf/io-ras.c @@ -281,10 +281,8 @@ gdk_pixbuf__ras_image_stop_load(gpointer data, GError **error) g_return_val_if_fail(context != NULL, TRUE); - if (context->LineBuf != NULL) - g_free(context->LineBuf); - if (context->HeaderBuf != NULL) - g_free(context->HeaderBuf); + g_free(context->LineBuf); + g_free(context->HeaderBuf); if (context->pixbuf) g_object_unref(context->pixbuf); |