aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Puccinelli2010-08-05 23:59:34 +0000
committerTony Puccinelli2010-08-05 23:59:34 +0000
commit9369c769fe3c9741f5b1aa8ae7552c108e5ed94d (patch)
tree98004360a94ff4fe4c0808f06769341bab516f09
parent09a41c94be1da2ab13db99045840f20aec2be89b (diff)
downloadscummvm-rg350-9369c769fe3c9741f5b1aa8ae7552c108e5ed94d.tar.gz
scummvm-rg350-9369c769fe3c9741f5b1aa8ae7552c108e5ed94d.tar.bz2
scummvm-rg350-9369c769fe3c9741f5b1aa8ae7552c108e5ed94d.zip
Fix for mixed-up ordering of '_dlHandle->close()' and 'delete _dlHandle'
svn-id: r51773
-rw-r--r--backends/plugins/elf-provider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/plugins/elf-provider.cpp b/backends/plugins/elf-provider.cpp
index 4e1f277fb8..08ef7899d2 100644
--- a/backends/plugins/elf-provider.cpp
+++ b/backends/plugins/elf-provider.cpp
@@ -58,10 +58,10 @@ bool ELFPlugin::loadPlugin() {
void ELFPlugin::unloadPlugin() {
DynamicPlugin::unloadPlugin();
if (_dlHandle) {
- delete _dlHandle;
if (!_dlHandle->close()) {
warning("Failed unloading plugin '%s'", _filename.c_str());
}
+ delete _dlHandle;
_dlHandle = 0;
}
}