From 5f40aac300fe8a0cb6cfb10664886f1d22902234 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Sat, 11 Mar 2006 16:16:15 +0000 Subject: 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 --- docs/CREDITS | 1 + uisimulator/common/io.c | 2 -- 2 files changed, 1 insertion(+), 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; } -- cgit v1.2.3