diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-08-28 22:31:57 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-08-28 22:31:57 -0700 |
commit | 71a36b404ea5e1d8819b85e1d8d5c39b09645ca3 (patch) | |
tree | 6e01ba1633340324074c69f058fe7d47791af8af /binding/mediaplayer-manager.c | |
parent | 4a245cfd11c387c297bff9b000142a26683b1d1d (diff) |
binding: media: free sqlite3 prepared query statement
Run sqlite3_finalize() on sqlite3 prepared query statement
to allow the resources to be freed
Change-Id: I0dead4c642ab393f0f6145b2e77952952dff38b3
Bug-AGL: SPEC-846
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/mediaplayer-manager.c')
-rw-r--r-- | binding/mediaplayer-manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binding/mediaplayer-manager.c b/binding/mediaplayer-manager.c index 38e5cab..ca46587 100644 --- a/binding/mediaplayer-manager.c +++ b/binding/mediaplayer-manager.c @@ -141,6 +141,8 @@ GList* media_lightmediascanner_scan(void) list = g_list_append(list, g_strdup_printf("file://%s", path)); } + sqlite3_finalize(res); + return list; } |