Update g_hash_table related code 82/114582/2
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 14 Feb 2017 06:11:31 +0000 (15:11 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 14 Feb 2017 06:17:39 +0000 (15:17 +0900)
Change-Id: I3d8d3baf20adc04e5c8cc59843d95cec4804916c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/capi-content-media-content.spec
src/media_filter.c

index 82eb3155e7235bb6100376320461dbd31dda424b..c8bc7f8ea7691f3ae991a47eb40e926d907add69 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.3.1
+Version:    0.3.2
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 8428cdc63298785d6a6e962828d83ff206c6f8cf..b9fce87fb6b11f61e2a03a4a52e6f06b1d9212c0 100755 (executable)
@@ -109,8 +109,8 @@ static char *__get_collate_str(media_content_collation_e collate_type)
 
 static void __filter_attribute_free_value(gpointer key, gpointer value, gpointer user_data)
 {
-       SAFE_FREE(key);
-       SAFE_FREE(value);
+       SAFE_G_FREE(key);
+       SAFE_G_FREE(value);
 }
 
 static char *__media_filter_replace_attr(attribute_h attr, char *name)
@@ -661,12 +661,12 @@ int _media_filter_attribute_add(attribute_h attr, const char *user_attr, const c
        media_content_retvm_if(_attr == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "invalid attr");
 
        if (STRING_VALID(user_attr) && STRING_VALID(platform_attr)) {
-               _user = strdup(user_attr);
+               _user = g_strdup(user_attr);
                media_content_retvm_if(_user == NULL, MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY");
 
-               _platform = strdup(platform_attr);
+               _platform = g_strdup(platform_attr);
                if (_platform == NULL) {
-                       SAFE_FREE(_user);
+                       SAFE_G_FREE(_user);
                        media_content_error("OUT_OF_MEMORY(0x%08x)", MEDIA_CONTENT_ERROR_OUT_OF_MEMORY);
                        return MEDIA_CONTENT_ERROR_OUT_OF_MEMORY;
                }