cleanup bitmap class

This commit is contained in:
scawful
2024-05-28 23:49:45 -04:00
parent b48af5313b
commit 00e82140e0
2 changed files with 123 additions and 135 deletions

View File

@@ -253,7 +253,6 @@ class Bitmap {
struct SDL_Surface_Deleter {
void operator()(SDL_Surface *p) const {
if (p != nullptr) {
p->pixels = nullptr;
SDL_FreeSurface(p);
p = nullptr;
}