diff options
author | Dan Everton <dan@iocaine.org> | 2006-03-11 16:16:15 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-03-11 16:16:15 +0000 |
commit | 5f40aac300fe8a0cb6cfb10664886f1d22902234 (patch) | |
tree | 634c2b98048248acaa32c93bd7b5179474507f46 /uisimulator | |
parent | a1635c2b17694b644b8aeef74688147fc1899626 (diff) | |
download | rockbox-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
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/io.c | 2 |
1 files changed, 0 insertions, 2 deletions
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, | |||
361 | #else | 361 | #else |
362 | DEBUGF("dlopen(%s): %s\n", path, dlerror()); | 362 | DEBUGF("dlopen(%s): %s\n", path, dlerror()); |
363 | #endif | 363 | #endif |
364 | dlclose(*pd); | ||
365 | return NULL; | 364 | return NULL; |
366 | } | 365 | } |
367 | 366 | ||
@@ -399,7 +398,6 @@ void *sim_plugin_load(char *plugin, void **pd) | |||
399 | #else | 398 | #else |
400 | DEBUGF("dlopen(%s): %s\n", path, dlerror()); | 399 | DEBUGF("dlopen(%s): %s\n", path, dlerror()); |
401 | #endif | 400 | #endif |
402 | dlclose(*pd); | ||
403 | return NULL; | 401 | return NULL; |
404 | } | 402 | } |
405 | 403 | ||