Fix uses of member after deleting the object. CID 10535, 10534.
This commit is contained in:
@@ -194,10 +194,11 @@ BArchiveManager::ArchiverLeaving(const BArchiver* archiver, status_t err)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status_t result = fError;
|
||||||
if (archiver == fCreator)
|
if (archiver == fCreator)
|
||||||
delete this;
|
delete this;
|
||||||
|
|
||||||
return fError;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -366,8 +367,9 @@ BUnarchiveManager::UnarchiverLeaving(const BUnarchiver* unarchiver,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status_t result = fError;
|
||||||
delete this;
|
delete this;
|
||||||
return fError;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user