The device object is supposed to be deleted after the removed hook returns.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29186 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1e5a02e76f
commit
f7de06baf3
@ -117,8 +117,10 @@ WatchedEntry::~WatchedEntry()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fDevice)
|
if (fDevice) {
|
||||||
fRoster->DeviceRemoved(fDevice);
|
fRoster->DeviceRemoved(fDevice);
|
||||||
|
delete fDevice;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user