Revert "ProcessController: solve BMessage kind of memory leak."

This reverts the ProcessController portion of commit edcc37c64a.

Barrett refused to relicense his contribution to ProcessController.
This commit is contained in:
Augustin Cavalier
2020-10-10 15:43:03 -04:00
parent fed8255311
commit 844ff609b4
+4 -3
View File
@@ -118,9 +118,10 @@ PCApplication::ReadyToRun()
int32 count = list.CountItems();
if (count > 1) {
for (int32 i = 0; i < count - 1; i++) {
BMessenger otherme(NULL, (addr_t)list.ItemAt(i));
BMessage message(B_QUIT_REQUESTED);
otherme.SendMessage(&message);
BMessenger* otherme = new BMessenger(NULL, (addr_t)list.ItemAt(i));
BMessage* message = new BMessage(B_QUIT_REQUESTED);
otherme->SendMessage(message);
delete otherme;
}
}
}