From 8fd6f8f6e975b9e455d2824410b4a2231e949474 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 1 May 2019 17:32:45 +0200 Subject: Call Host_NotifyMapLoaded when clearing g_symbolDB Otherwise DolphinQt will have a stale symbol list and you can get nullptr dereferences when trying to use it. --- Source/Core/Common/SymbolDB.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/Common/SymbolDB.cpp') diff --git a/Source/Core/Common/SymbolDB.cpp b/Source/Core/Common/SymbolDB.cpp index b433671daa..c24faaa8c9 100644 --- a/Source/Core/Common/SymbolDB.cpp +++ b/Source/Core/Common/SymbolDB.cpp @@ -42,6 +42,11 @@ void SymbolDB::List() INFO_LOG(OSHLE, "%zu functions known in this program above.", m_functions.size()); } +bool SymbolDB::IsEmpty() const +{ + return m_functions.empty(); +} + void SymbolDB::Clear(const char* prefix) { // TODO: honor prefix -- cgit v1.2.3