Skip to content

Commit

Permalink
MADS: Fix mismatched delete/free releasing screen surface
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 5, 2015
1 parent 3fae9f1 commit c0fafcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/mads/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void ScreenSurface::init() {
}

ScreenSurface::~ScreenSurface() {
delete[] _surfacePixels;
::free(_surfacePixels);
}

void ScreenSurface::copyRectToScreen(const Common::Rect &bounds) {
Expand Down

0 comments on commit c0fafcf

Please sign in to comment.