* load_program() (and probably others) could call delete_image() with a NULL
pointer - which it now handles gracefully. * This also fixes starting the runtime loader directly: it no longer crashes but will just return an error. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22409 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
828d9454da
commit
2760c4cd73
@ -370,6 +370,9 @@ delete_image_struct(image_t *image)
|
||||
static void
|
||||
delete_image(image_t *image)
|
||||
{
|
||||
if (image == NULL)
|
||||
return;
|
||||
|
||||
_kern_unregister_image(image->id);
|
||||
// registered in load_container()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user