[Verification] Code compiles.
Change-Id: I9e75cfd1d91021eb7a8bb074bcd0505c8002997b
notification_event_type_e event_type,
app_control_h* event_handler) {
ScopeLogger();
notification_event_type_e event_type,
app_control_h* event_handler) {
ScopeLogger();
+ app_control_h handler = nullptr;
int ret = notification_get_event_handler(noti_handle, event_type, &handler);
if (NOTIFICATION_ERROR_NONE != ret) {
int ret = notification_get_event_handler(noti_handle, event_type, &handler);
if (NOTIFICATION_ERROR_NONE != ret) {
if (event_handler) {
*event_handler = handler;
if (event_handler) {
*event_handler = handler;
+ } else {
+ app_control_destroy(handler);
}
return PlatformResult(ErrorCode::NO_ERROR);
}
return PlatformResult(ErrorCode::NO_ERROR);