Merge pull request #17 from reboot/master
Don't close module if opening failed during graphics initializationmaster
commit
f76a3db272
|
@ -159,7 +159,8 @@ void gs_destroy(graphics_t graphics)
|
||||||
pthread_mutex_destroy(&graphics->mutex);
|
pthread_mutex_destroy(&graphics->mutex);
|
||||||
da_free(graphics->matrix_stack);
|
da_free(graphics->matrix_stack);
|
||||||
da_free(graphics->viewport_stack);
|
da_free(graphics->viewport_stack);
|
||||||
os_dlclose(graphics->module);
|
if (graphics->module)
|
||||||
|
os_dlclose(graphics->module);
|
||||||
bfree(graphics);
|
bfree(graphics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue