Spotted by "Blub": After unmounting we didn't delete the Volume object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32287 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b5cc4c1958
commit
996aa11b17
@ -284,13 +284,11 @@ status_t
|
||||
UserlandRequestHandler::_HandleRequest(UnmountVolumeRequest* request)
|
||||
{
|
||||
// check and execute the request
|
||||
status_t result = B_OK;
|
||||
Volume* volume = (Volume*)request->volume;
|
||||
if (!volume)
|
||||
result = B_BAD_VALUE;
|
||||
if (result == B_OK) {
|
||||
status_t result = B_BAD_VALUE;
|
||||
if (Volume* volume = (Volume*)request->volume) {
|
||||
RequestThreadContext context(volume, request);
|
||||
result = volume->Unmount();
|
||||
fFileSystem->DeleteVolume(volume);
|
||||
}
|
||||
|
||||
// prepare the reply
|
||||
|
Loading…
Reference in New Issue
Block a user