From 5d442bca1200629f56f684abe7b7c07fc1a436a1 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 15 Apr 2013 18:36:13 +0200 Subject: [PATCH] Bug 861796 - Fix crash in LibHandle::~LibHandle. r=nfroyd --- mozglue/linker/ElfLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozglue/linker/ElfLoader.cpp b/mozglue/linker/ElfLoader.cpp index aad2829ea7e1..41600bdc0544 100644 --- a/mozglue/linker/ElfLoader.cpp +++ b/mozglue/linker/ElfLoader.cpp @@ -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; }