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:
parent
a1635c2b17
commit
5f40aac300
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue