Memory leak fixes
This commit is contained in:
parent
10d377c6c8
commit
153533ff86
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue