mirror of
https://github.com/libretro/gw-libretro.git
synced 2024-12-02 13:07:46 +00:00
Better error handling
This commit is contained in:
parent
a1a53e0043
commit
7e1c2a6657
@ -612,8 +612,12 @@ int gwrom_init( gwrom_t* gwrom, void* data, size_t size, uint32_t flags )
|
||||
|
||||
void gwrom_destroy( gwrom_t* gwrom )
|
||||
{
|
||||
if (!gwrom)
|
||||
return;
|
||||
|
||||
/* calls the destroy method */
|
||||
gwrom->destroy( gwrom );
|
||||
if (gwrom->destroy)
|
||||
gwrom->destroy( gwrom );
|
||||
|
||||
/* free data */
|
||||
if ( gwrom->flags & GWROM_FREE_DATA )
|
||||
|
Loading…
Reference in New Issue
Block a user