From 9f96ea80b1610e70d1b6894d7f80a5aef546afb0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 10 Jul 2013 22:27:24 -0700 Subject: [PATCH] Don't crash if GameInfoCache is never inited. --- UI/GameInfoCache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index 562dd99b4a..e09f31abbe 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -304,7 +304,8 @@ void GameInfoCache::Decimate() { } void GameInfoCache::Clear() { - gameInfoWQ_->Flush(); + if (gameInfoWQ_) + gameInfoWQ_->Flush(); for (auto iter = info_.begin(); iter != info_.end(); iter++) { lock_guard lock(iter->second->lock); if (!iter->second->pic0TextureData.empty()) {