Fix nullpointer deref

This commit is contained in:
Jonas Kulla 2013-09-24 22:42:10 +02:00
parent 4f08382c69
commit a9454fdf9c
4 changed files with 9 additions and 3 deletions

View file

@ -715,7 +715,8 @@ void Window::setWindowskin(Bitmap *value)
{
GUARD_DISPOSED;
value->ensureNonMega();
if (value)
value->ensureNonMega();
p->windowskin = value;
}