Merge pull request #17 from reboot/master

Don't close module if opening failed during graphics initialization
master
Jim 2014-01-03 09:59:57 -08:00
commit f76a3db272
1 changed files with 2 additions and 1 deletions

View File

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