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)
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;
}