Fix nullpointer deref
This commit is contained in:
parent
4f08382c69
commit
a9454fdf9c
4 changed files with 9 additions and 3 deletions
|
|
@ -645,6 +645,9 @@ SDL_Surface *Bitmap::megaSurface()
|
|||
|
||||
void Bitmap::ensureNonMega()
|
||||
{
|
||||
if (isDisposed())
|
||||
return;
|
||||
|
||||
GUARD_MEGA;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue