diff --git a/LEGO1/mxstreamer.cpp b/LEGO1/mxstreamer.cpp index add5adcc..cd2272c6 100644 --- a/LEGO1/mxstreamer.cpp +++ b/LEGO1/mxstreamer.cpp @@ -183,13 +183,10 @@ MxLong MxStreamer::Notify(MxParam& p_param) MxStreamController* c = static_cast(p_param).GetController(); - if (!c->FUN_100c20d0(ds)) { - MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c); - NotificationManager()->Send(this, ¬if); - } - else { + if (c->FUN_100c20d0(ds)) delete c; - } + else + NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c)); } return 0;