* 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user