mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 16:20:58 +00:00
Use libretrodb_query_free to cleanup query state in
database_cursor_open
This commit is contained in:
parent
99ea729d1c
commit
1dc9183bb5
@ -231,10 +231,13 @@ static int database_cursor_open(libretrodb_t *db,
|
|||||||
if ((libretrodb_cursor_open(db, cur, q)) != 0)
|
if ((libretrodb_cursor_open(db, cur, q)) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
if (q)
|
||||||
|
libretrodb_query_free(q);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (query)
|
if (q)
|
||||||
libretrodb_query_free(q);
|
libretrodb_query_free(q);
|
||||||
query = NULL;
|
query = NULL;
|
||||||
libretrodb_close(db);
|
libretrodb_close(db);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user