diff options
Diffstat (limited to 'src/progs/dyecmd/dyemain.cpp')
-rw-r--r-- | src/progs/dyecmd/dyemain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/progs/dyecmd/dyemain.cpp b/src/progs/dyecmd/dyemain.cpp index 310ee04a7..6de3ef2fe 100644 --- a/src/progs/dyecmd/dyemain.cpp +++ b/src/progs/dyecmd/dyemain.cpp @@ -36,6 +36,8 @@ #include "resources/loaders/imageloader.h" +#include "resources/resourcemanager/resourcemanager.h" + #include "utils/cpu.h" #include "utils/gettext.h" #include "utils/pnglib.h" @@ -120,6 +122,8 @@ int main(int argc, char **argv) image->getSDLSurface()); PngLib::writePNG(surface, dst); SDL_FreeSurface(surface); + image->decRef(); + ResourceManager::cleanOrphans(true); VirtFs::deinit(); return 0; } |