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:
parent
fed8255311
commit
844ff609b4
@ -118,9 +118,10 @@ PCApplication::ReadyToRun()
|
|||||||
int32 count = list.CountItems();
|
int32 count = list.CountItems();
|
||||||
if (count > 1) {
|
if (count > 1) {
|
||||||
for (int32 i = 0; i < count - 1; i++) {
|
for (int32 i = 0; i < count - 1; i++) {
|
||||||
BMessenger otherme(NULL, (addr_t)list.ItemAt(i));
|
BMessenger* otherme = new BMessenger(NULL, (addr_t)list.ItemAt(i));
|
||||||
BMessage message(B_QUIT_REQUESTED);
|
BMessage* message = new BMessage(B_QUIT_REQUESTED);
|
||||||
otherme.SendMessage(&message);
|
otherme->SendMessage(message);
|
||||||
|
delete otherme;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user