summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-03-11 16:16:15 +0000
committerDan Everton <dan@iocaine.org>2006-03-11 16:16:15 +0000
commit5f40aac300fe8a0cb6cfb10664886f1d22902234 (patch)
tree634c2b98048248acaa32c93bd7b5179474507f46
parenta1635c2b17694b644b8aeef74688147fc1899626 (diff)
downloadrockbox-5f40aac300fe8a0cb6cfb10664886f1d22902234.tar.gz
rockbox-5f40aac300fe8a0cb6cfb10664886f1d22902234.zip
Don't pass NULL to dlclose. Stops the simulator crashing if there's a problem loading a plugin or codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9003 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--docs/CREDITS1
-rw-r--r--uisimulator/common/io.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 906e3d0514..ccc174ba3d 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -179,3 +179,4 @@ Rui Marinho
Alun Thomas
Nils Wallménius
Naoaki Okazaki
+Will Dyson
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 56cdb46a6b..9115ef29e1 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -361,7 +361,6 @@ void *sim_codec_load_ram(char* codecptr, int size,
#else
DEBUGF("dlopen(%s): %s\n", path, dlerror());
#endif
- dlclose(*pd);
return NULL;
}
@@ -399,7 +398,6 @@ void *sim_plugin_load(char *plugin, void **pd)
#else
DEBUGF("dlopen(%s): %s\n", path, dlerror());
#endif
- dlclose(*pd);
return NULL;
}