* 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
@@ -1340,8 +1340,9 @@ BWindow::SetPulseRate(bigtime_t rate)
if (rate > 0) {
if (fPulseRunner == NULL) {
BMessage message(B_PULSE);
fPulseRunner = new BMessageRunner(BMessenger(this),
new BMessage(B_PULSE), rate);
&message, rate);
} else {
fPulseRunner->SetInterval(rate);
}