return ret;
monitoring_list = (GList *)g_hash_table_lookup(_monitoring_hash, GUINT_TO_POINTER(noti_uid));
- if (ret == NOTIFICATION_ERROR_NONE) {
- ret = notification_noti_check_tag(noti);
- if (ret == NOTIFICATION_ERROR_NOT_EXIST_ID)
- ret = _add_noti(reply_body, noti, monitoring_list);
- else if (ret == NOTIFICATION_ERROR_ALREADY_EXIST_ID)
- ret = _update_noti(reply_body, noti, monitoring_list);
- }
- notification_free(noti);
+ ret = notification_noti_check_tag(noti);
+ if (ret == NOTIFICATION_ERROR_NOT_EXIST_ID)
+ ret = _add_noti(reply_body, noti, monitoring_list);
+ else if (ret == NOTIFICATION_ERROR_ALREADY_EXIST_ID)
+ ret = _update_noti(reply_body, noti, monitoring_list);
+
+ notification_free(noti);
} else {
ret = NOTIFICATION_ERROR_OUT_OF_MEMORY;
}