mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-20 09:52:33 +00:00
Merge pull request #5699 from meepingsnesroms/master
Properly clean up memory on exit(libretrodb_tool)
This commit is contained in:
commit
5ba28b60aa
@ -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…
x
Reference in New Issue
Block a user