aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-14 23:13:18 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-14 23:13:18 +0000
commitc14df765d8c6deabb9e49a6e02f4c768ae2d84bb (patch)
treeab79c34df17cceee044ec3cf856aa23381928b90 /src
parent0a734c28df3696420d6e83b3674ab6d8862c5cd2 (diff)
downloadimv-c14df765d8c6deabb9e49a6e02f4c768ae2d84bb.tar.gz
Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 1c58596..64fa3b8 100644
--- a/src/image.c
+++ b/src/image.c
@@ -107,6 +107,7 @@ int imv_image_load(struct imv_image *img, const char* path)
img->cur_bmp = FreeImage_ConvertTo32Bits(image);
img->width = FreeImage_GetWidth(img->cur_bmp);
img->height = FreeImage_GetHeight(img->cur_bmp);
+ FreeImage_Unload(image);
}
img->changed = 1;