1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dan Everton 2006-03-11 16:16:15 +00:00
parent a1635c2b17
commit 5f40aac300
2 changed files with 1 additions and 2 deletions

View file

@ -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;
}