diff options
-rw-r--r-- | webkit/glue/plugins/plugin_lib_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/plugins/plugin_lib_mac.mm b/webkit/glue/plugins/plugin_lib_mac.mm index a29a6f7..9f4d1dd 100644 --- a/webkit/glue/plugins/plugin_lib_mac.mm +++ b/webkit/glue/plugins/plugin_lib_mac.mm @@ -311,7 +311,7 @@ bool PluginLib::ReadWebPluginInfo(const FilePath &filename, // not leaked. scoped_ptr<base::NativeLibraryStruct> native_library( base::LoadNativeLibrary(filename)); - if (native_library->type != base::BUNDLE) + if (!native_library.get() || native_library->type != base::BUNDLE) return false; scoped_cftyperef<CFBundleRef> bundle(native_library->bundle); if (!bundle) |