Release version 0.5.11
[platform/core/appfw/librua.git] / src / rua_context.c
index 8b80a16..e015d26 100644 (file)
@@ -161,7 +161,7 @@ API int rua_context_get_component_id(rua_context_h context, char **component_id)
        }
 
        if (context->component_id) {
-               *component_id = context->component_id;
+               *component_id = strdup(context->component_id);
                if (*component_id == NULL) {
                        _E("Out of memory");
                        return RUA_ERROR_OUT_OF_MEMORY;