Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: webkit/glue/plugins/plugin_lib_mac.mm

Issue 492012: [Mac] Puts a NULL check in case a native plugin library cannot be loaded (.dl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_lib_mac.mm
===================================================================
--- webkit/glue/plugins/plugin_lib_mac.mm (revision 34152)
+++ webkit/glue/plugins/plugin_lib_mac.mm (working copy)
@@ -311,7 +311,7 @@
// 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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698