* Fixed memory leak in StressTest and BWindow: they both did not delete the
message they passed to a BMessageRunner object. * Added note about the ownership of the message to the BMessageRunner documentation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16751 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -102,7 +102,8 @@ TestWindow::TestWindow(BRect frame)
|
||||
Show();
|
||||
|
||||
BMessenger self(this);
|
||||
fPulse = new BMessageRunner(self, new BMessage(B_QUIT_REQUESTED), 10000000, 1);
|
||||
BMessage message(B_QUIT_REQUESTED);
|
||||
fPulse = new BMessageRunner(self, &message, 10000000, 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user