diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-05 22:51:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-05 22:51:50 +0300 |
commit | 471ebb87308b318d8b04f773954d2be4f49f080d (patch) | |
tree | 3347151c1d302c090e9515954c89b42a3a854094 | |
parent | f80cd1d9c39684b234efc27e7f5218e9890ada1a (diff) | |
download | mv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.gz mv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.bz2 mv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.xz mv-471ebb87308b318d8b04f773954d2be4f49f080d.zip |
Fix memory leak on exit in dyecmd.
-rw-r--r-- | src/dyetool/dyemain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dyetool/dyemain.cpp b/src/dyetool/dyemain.cpp index 95e038da6..2217508cc 100644 --- a/src/dyetool/dyemain.cpp +++ b/src/dyetool/dyemain.cpp @@ -107,11 +107,13 @@ int main(int argc, char **argv) if (image == nullptr) { printf("Error loading image\n"); + VirtFs::deinit(); return 1; } SDL_Surface *const surface = ImageHelper::convertTo32Bit( image->getSDLSurface()); ImageWriter::writePNG(surface, dst); SDL_FreeSurface(surface); + VirtFs::deinit(); return 0; } |