(libretrodb) Fix leak in database_cursor_iterate()

This commit is contained in:
Higor Eurípedes 2015-06-04 12:41:07 -03:00
parent a94829c1e8
commit 936d29e703

View File

@ -214,7 +214,10 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
return -1;
if (item.type != RDT_MAP)
{
rmsgpack_dom_value_free(&item);
return 1;
}
db_info->analog_supported = -1;
db_info->rumble_supported = -1;