diff options
Diffstat (limited to 'src/destructor.cpp')
-rw-r--r-- | src/destructor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/destructor.cpp b/src/destructor.cpp index 7f1c906..1adcb65 100644 --- a/src/destructor.cpp +++ b/src/destructor.cpp @@ -3,6 +3,9 @@ FLD::~FLD() { + for (auto [_, e] : images) + if (e.ptr != nullptr) + SDL_DestroyTexture(e.ptr); if (_target != nullptr) { SDL_DestroyTexture(_target); _target = nullptr; |