Bug 861796 - Fix crash in LibHandle::~LibHandle. r=nfroyd

This commit is contained in:
Mike Hommey 2013-04-15 18:36:13 +02:00
parent fb4a3fd5b1
commit 5d442bca12

View File

@ -181,7 +181,7 @@ LeafName(const char *path)
LibHandle::~LibHandle()
{
free(path);
if (mappable->GetKind() != Mappable::MAPPABLE_EXTRACT_FILE)
if (mappable && mappable->GetKind() != Mappable::MAPPABLE_EXTRACT_FILE)
delete mappable;
}