summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 6f46c57..3d51cb6 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -111,6 +111,7 @@ pixel *ptif_unpack(void *datain, int size, int *w, int *h){
free(green_chan);
free(blue_chan);
free(undata);
+ free(result);
return NULL;
}
if(i != (width*height)*3){
@@ -119,6 +120,7 @@ pixel *ptif_unpack(void *datain, int size, int *w, int *h){
free(green_chan);
free(blue_chan);
free(undata);
+ free(result);
return NULL;
}
memcpy(red_chan, undata, width*height);