From fd2281afff58b392b67650b1d99b69ab80f6302c Mon Sep 17 00:00:00 2001 From: Aloshi Date: Wed, 14 May 2014 18:02:32 -0500 Subject: [PATCH] Fix renderer not deinitializing when no systems are found (affects RPi). --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index ecdf69fa1..07f70635a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -165,6 +165,8 @@ int main(int argc, char* argv[]) if(!SystemData::loadConfig()) { LOG(LogError) << "Error parsing system config file!"; + if(!scrape_cmdline) + Renderer::deinit(); return 1; } @@ -172,6 +174,8 @@ int main(int argc, char* argv[]) if(SystemData::sSystemVector.size() == 0) { LOG(LogError) << "No systems found! Does at least one system have a game present? (check that extensions match!)\n(Also, make sure you've updated your es_systems.cfg for XML!)"; + if(!scrape_cmdline) + Renderer::deinit(); return 1; }