* 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:
Axel Dörfler
2006-03-12 22:35:36 +00:00
parent ce0be66ff4
commit 3dd881e3af
3 changed files with 12 additions and 6 deletions
+2 -1
View File
@@ -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);
}