Skip to content

Commit

Permalink
HYPNO: Fix mismatched malloc()/free()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr authored Nov 7, 2024
1 parent da6ceee commit 7e51bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/hypno/cursors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Graphics::Surface *CursorCache::getCursor(const Common::String &cursor, uint32 n
return _surface;
}

delete(_palette);
free(_palette);
_palette = nullptr;

if (_surface) {
Expand Down

0 comments on commit 7e51bdb

Please sign in to comment.