Fix crash issue
[platform/core/multimedia/libmedia-service.git] / src / common / media-svc-db-utils.c
index 1eb3d06..500e5e6 100755 (executable)
@@ -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)