summaryrefslogtreecommitdiffstats
path: root/progs/samples/rgbtoppm.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/samples/rgbtoppm.c')
-rw-r--r--progs/samples/rgbtoppm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/samples/rgbtoppm.c b/progs/samples/rgbtoppm.c
index 6652bb32ec1..56ca5b0efe9 100644
--- a/progs/samples/rgbtoppm.c
+++ b/progs/samples/rgbtoppm.c
@@ -225,6 +225,7 @@ read_rgb_texture(char *name, int *width, int *height)
if (gbuf) free(gbuf);
if (bbuf) free(bbuf);
if (abuf) free(abuf);
+ ImageClose(image);
return NULL;
}
ptr = base;