Modified to free bundle after registering app control bundle 70/148970/1 accepted/tizen/unified/20170913.070904 submit/tizen/20170911.104439
authorSomin Kim <somin926.kim@samsung.com>
Mon, 11 Sep 2017 08:29:44 +0000 (17:29 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Mon, 11 Sep 2017 08:31:38 +0000 (17:31 +0900)
Change-Id: I9c22bb6d5241216e94f905a71abd6b0ff8d4b424
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
src/trigger/context_trigger.cpp

index 730bbac..2fffe25 100644 (file)
@@ -507,6 +507,8 @@ EXPORT_API int context_trigger_rule_set_action_app_control(context_trigger_rule_
        IF_FAIL_RETURN_TAG(bn, E_PARAM, _E, "Converting failed");
 
        int ret = ctx_sched_job_set_app_control(rule->job, bn);
+       if (bn)
+               bundle_free(bn);
 
        if (ret == E_NONE)
                rule->hasAction = true;
@@ -553,6 +555,8 @@ EXPORT_API int context_trigger_rule_set_action_notification(context_trigger_rule
        }
 
        int ret = ctx_sched_job_set_notification(rule->job, title, content, icon_path, bn);
+       if (bn)
+               bundle_free(bn);
 
        if (ret == E_NONE)
                rule->hasAction = true;