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