From fffbd86a1014ad169ed2d68ea58cdddf346faa14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Jul 2015 00:47:44 +0300 Subject: Add missing checks and non null attributes. --- src/resources/image.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/image.cpp') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index cd615c030..fc1c5fa4f 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -305,6 +305,8 @@ void Image::setAlpha(const float alpha) else { mSDLSurface = SDLImageHelper::SDLDuplicateSurface(mSDLSurface); + if (!mSDLSurface) + return; } } -- cgit v1.2.3-60-g2f50