Fixes: SVACE 59695
[Verification] TCT pass rate 100% (85/85/0/0/0)
Change-Id: Iccb8d0be2c121a03e842b1d8582173df06f58497
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
notification_h* noti_handle) {
LoggerD("Enter");
*noti_handle = notification_create(noti_type);
- if (!noti_handle) {
+ if (!*noti_handle) {
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR,
"Cannot make new notification object");
}
if (app_control) {
app_control_destroy(app_control);
}
- free(noti_handle);
+ notification_free(noti_handle);
};
if (is_update) {