Mercurial > hg > dmlib
changeset 1516:530ce92c513f
Better leak fix. :D
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 11 May 2018 22:52:06 +0300 |
parents | 66c75f6982e2 |
children | 1be17c662b8e |
files | tools/64vw.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/64vw.c Fri May 11 22:49:07 2018 +0300 +++ b/tools/64vw.c Fri May 11 22:52:06 2018 +0300 @@ -362,7 +362,6 @@ if (fmt == NULL || cimage == NULL) { - dmC64ImageFree(cimage); dmErrorMsg("Probing could not find any matching image format. Perhaps try forcing a format via -f.\n"); goto fail; } @@ -389,9 +388,9 @@ } } +fail: dmC64ImageFree(cimage); -fail: if (surf == NULL && (surf = SDL_CreateRGBSurface(SDL_SWSURFACE, 320, 200, 8, 0, 0, 0, 0)) == NULL) { dmErrorMsg("Could not allocate surface.\n");