aboutsummaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-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;