From d49a520d19f28c613c68b574686b182a9c0621be Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Jun 2015 18:41:42 +0300 Subject: Add missing checks into resources directory. --- src/resources/resourcemanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/resourcemanager.cpp') diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 9985ec67d..9d1f9de1e 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -260,6 +260,8 @@ bool ResourceManager::cleanOrphans(const bool always) void ResourceManager::logResource(const Resource *const res) { + if (!res) + return; #ifdef USE_OPENGL const Image *const image = dynamic_cast(res); if (image) -- cgit v1.2.3-70-g09d2