Memory leak fixes

This commit is contained in:
Casey 2022-02-06 13:38:00 +03:00
parent 10d377c6c8
commit 153533ff86
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 7 additions and 0 deletions

View File

@ -57,5 +57,12 @@ int main(int argc, char **argv)
} }
handler.main(state); handler.main(state);
image_unload(state.image);
image_unload(state.source_image);
if (args.out_style == ASC_STL_PALETTE)
free(state.palette);
return 0; return 0;
} }