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

This reverts the ProcessController portion of commit edcc37c64af67db04d4bacc7cd3d7b93423e95a9.

Barrett refused to relicense his contribution to ProcessController.
This commit is contained in:
Augustin Cavalier 2020-10-10 15:41:02 -04:00
parent fed8255311
commit 844ff609b4

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;
}
}
}