packagefs: Acquire missing reference for the root dir
We need one for the ID table and one for the volume itself.
This commit is contained in:
parent
ce1d048183
commit
dedc1369e1
@ -660,6 +660,8 @@ Volume::Mount(const char* parameterString)
|
||||
RETURN_ERROR(B_NO_MEMORY);
|
||||
fRootDirectory->Init(NULL, volumeName, 0);
|
||||
fNodes.Insert(fRootDirectory);
|
||||
fRootDirectory->AcquireReference();
|
||||
// one reference for the table
|
||||
|
||||
// get our mount point
|
||||
error = vfs_get_mount_point(fFSVolume->id, &fMountPoint.deviceID,
|
||||
|
Loading…
Reference in New Issue
Block a user