summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-pcx.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf/io-pcx.c')
-rw-r--r--gdk-pixbuf/io-pcx.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gdk-pixbuf/io-pcx.c b/gdk-pixbuf/io-pcx.c
index 019604916d..2fdf1e79b7 100644
--- a/gdk-pixbuf/io-pcx.c
+++ b/gdk-pixbuf/io-pcx.c
@@ -103,16 +103,12 @@ fill_pcx_context(struct pcx_context *context)
static void
free_pcx_context(struct pcx_context *context, gboolean unref_pixbuf)
{
- if(context->header)
- g_free(context->header);
- if(context->buf)
- g_free(context->buf);
+ g_free(context->header);
+ g_free(context->buf);
if(unref_pixbuf && context->pixbuf)
g_object_unref(context->pixbuf);
- if(context->line)
- g_free(context->line);
- if(context->p_data)
- g_free(context->p_data);
+ g_free(context->line);
+ g_free(context->p_data);
g_free(context);
}