summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}