summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-05 22:51:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-05 22:51:50 +0300
commit471ebb87308b318d8b04f773954d2be4f49f080d (patch)
tree3347151c1d302c090e9515954c89b42a3a854094 /src
parentf80cd1d9c39684b234efc27e7f5218e9890ada1a (diff)
downloadmv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.gz
mv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.bz2
mv-471ebb87308b318d8b04f773954d2be4f49f080d.tar.xz
mv-471ebb87308b318d8b04f773954d2be4f49f080d.zip
Fix memory leak on exit in dyecmd.
Diffstat (limited to 'src')
-rw-r--r--src/dyetool/dyemain.cpp2
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;
}