mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Properly clean up memory on exit(libretrodb_tool)
This commit is contained in:
parent
b3e22f6060
commit
9d598cb917
@ -177,6 +177,7 @@ int main(int argc, char ** argv)
|
||||
goto error;
|
||||
}
|
||||
|
||||
libretrodb_cursor_close(cur);
|
||||
libretrodb_close(db);
|
||||
|
||||
error:
|
||||
@ -184,5 +185,7 @@ error:
|
||||
libretrodb_free(db);
|
||||
if (cur)
|
||||
libretrodb_cursor_free(cur);
|
||||
if (q)
|
||||
libretrodb_query_free(q);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user