FPRINTF("[Line : %d][%s] notification_create failed for notification_type_e enum value = %d, returns null handle vale\\n", __LINE__, API_NAMESPACE, noti_type[enum_counter]);
return 1;
}
-
- eRetNotiErr = notification_free(g_NotificationHandle);
- PRINT_RESULT_CLEANUP(NOTIFICATION_ERROR_NONE, eRetNotiErr, "notification_free", NotificationGetError(eRetNotiErr), notification_delete(g_NotificationHandle););
-
notification_delete(g_NotificationHandle);
+ eRetNotiErr = notification_free(g_NotificationHandle);
+ PRINT_RESULT_CLEANUP(NOTIFICATION_ERROR_NONE, eRetNotiErr, "notification_free", NotificationGetError(eRetNotiErr), FREE_MEMORY(g_NotificationHandle));
}
return 0;
}