mirror of
https://github.com/ksherlock/profuse.git
synced 2026-03-14 00:16:29 +00:00
fix parent pointer bug
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@353 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -68,6 +68,10 @@ VolumeEntryPointer VolumeEntry::Open(Device::BlockDevicePointer device)
|
||||
|
||||
//ptr = new VolumeEntry(device));
|
||||
ptr = MAKE_SHARED(VolumeEntry, device);
|
||||
|
||||
// set up the weak references from the file entry to this.
|
||||
if (ptr) ptr->setParents();
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@@ -78,9 +82,6 @@ VolumeEntryPointer VolumeEntry::Create(Device::BlockDevicePointer device, const
|
||||
//ptr = new VolumeEntry(device, name);
|
||||
ptr = MAKE_SHARED(VolumeEntry, device, name);
|
||||
|
||||
// set up the weak references from the file entry to this.
|
||||
if (ptr) ptr->setParents();
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user