diff options
author | minje.ahn <minje.ahn@samsung.com> | 2022-10-13 14:34:36 +0900 |
---|---|---|
committer | minje.ahn <minje.ahn@samsung.com> | 2022-10-13 14:54:09 +0900 |
commit | 919a2fb6c1ba2cbc0e73b993e46bb9b939fe9d94 (patch) | |
tree | 8b359e04243d220eff26037dfa4f043e551fdbff | |
parent | f58f8e6cdce1d3a911f54ffb2069303057335286 (diff) | |
download | libmedia-service-919a2fb6c1ba2cbc0e73b993e46bb9b939fe9d94.tar.gz libmedia-service-919a2fb6c1ba2cbc0e73b993e46bb9b939fe9d94.tar.bz2 libmedia-service-919a2fb6c1ba2cbc0e73b993e46bb9b939fe9d94.zip |
Fix crash issuetizen_7.0_m2_releaseaccepted/tizen/unified/20221013.130855accepted/tizen/7.0/unified/hotfix/20221116.105406accepted/tizen/7.0/unified/20221110.062818tizen_7.0_hotfixtizen_7.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Set to null to prevent malfunction.
Change-Id: Ia2bd9ab7089223916e62db2cd4cd31d509c7adfd
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
-rwxr-xr-x | src/common/media-svc-db-utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/media-svc-db-utils.c b/src/common/media-svc-db-utils.c index 1eb3d06..500e5e6 100755 --- a/src/common/media-svc-db-utils.c +++ b/src/common/media-svc-db-utils.c @@ -487,10 +487,13 @@ void _media_svc_destroy_table_query(void) /* Table Free */ g_hash_table_destroy(table); + table = NULL; /* Column Free */ - for (i = 0; i < DB_LIST_MAX; i++) + for (i = 0; i < DB_LIST_MAX; i++) { g_slist_free_full(column_list[i], __media_svc_column_free); + column_list[i] = NULL; + } } int _media_svc_sql_query(const char *sql_str, uid_t uid) |