summaryrefslogtreecommitdiffstats
path: root/common/canvas_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/canvas_utils.c')
-rw-r--r--common/canvas_utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/canvas_utils.c b/common/canvas_utils.c
index 55b71599..71f6890e 100644
--- a/common/canvas_utils.c
+++ b/common/canvas_utils.c
@@ -51,9 +51,7 @@ static void release_data(pixman_image_t *image, void *release_data)
gdi_handlers--;
}
#endif
- if (data->data) {
- free(data->data);
- }
+ free(data->data);
free(data);
}