CID 926 : Memory leak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38045 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
99002a3991
commit
68fdcbe01d
@ -715,7 +715,8 @@ TReplicantTray::HandleEntryUpdate(BMessage* message)
|
||||
if (message->FindInt32("new device", &device) != B_OK)
|
||||
break;
|
||||
|
||||
RunAddOnQuery(new BVolume(device), kEnabledPredicate);
|
||||
BVolume volume(device);
|
||||
RunAddOnQuery(&volume, kEnabledPredicate);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user