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-30 04:35:05 +0000 |
commit | 0d7fdc1cbaa393a080a6ebab5148156b3c39e74a (patch) | |
tree | 77de9d8a485d403c2e56ad3d79ff7e3a12dfd5d4 | |
parent | dc37667bdd91b6b267473d97870ed6d85204a4cf (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>
-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 6265312..ec10579 100644 --- a/binding/mediaplayer-manager.c +++ b/binding/mediaplayer-manager.c @@ -117,6 +117,8 @@ GList* media_lightmediascanner_scan(void) list = g_list_append(list, g_strdup_printf("file://%s", path)); } + sqlite3_finalize(res); + return list; } |