From 498ede1692e23f14fe60525a8e3f27294bc5b683 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Mon, 2 Mar 2009 20:28:56 +0000 Subject: [PATCH] Linux: Fix Issue 78 (Pcsx2 crashing if you change graphical plugins). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@662 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Linux/ConfigDlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcsx2/Linux/ConfigDlg.cpp b/pcsx2/Linux/ConfigDlg.cpp index 789fe5095e..0a8fb54f98 100644 --- a/pcsx2/Linux/ConfigDlg.cpp +++ b/pcsx2/Linux/ConfigDlg.cpp @@ -484,6 +484,7 @@ void FindPlugins() if (PS2EgetLibType == NULL) Console::Error("PS2EgetLibType==NULL for %s", params ent->d_name); if (PS2EgetLibName == NULL) Console::Error("PS2EgetLibName==NULL for %s", params ent->d_name); if (PS2EgetLibVersion2 == NULL) Console::Error("PS2EgetLibVersion2==NULL for %s", params ent->d_name); + SysCloseLibrary(Handle); continue; } @@ -558,6 +559,7 @@ void FindPlugins() else Console::Notice("FWPlugin %s: Version %x != %x", params plugin, (version >> 16)&0xff, PS2E_FW_VERSION); } + SysCloseLibrary(Handle); } closedir(dir);