Fix uses of member after deleting the object. CID 10535, 10534.

This commit is contained in:
Michael Lotz
2011-12-06 19:37:46 +01:00
parent 8eec72dcab
commit 011002e5e4
+4 -2
View File
@@ -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;
} }