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
+5 -3
View File
@@ -194,10 +194,11 @@ BArchiveManager::ArchiverLeaving(const BArchiver* archiver, status_t err)
}
}
if (archiver == fCreator)
status_t result = fError;
if (archiver == fCreator)
delete this;
return fError;
return result;
}
@@ -366,8 +367,9 @@ BUnarchiveManager::UnarchiverLeaving(const BUnarchiver* unarchiver,
}
}
status_t result = fError;
delete this;
return fError;
return result;
}