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

Unified Diff: webkit/glue/plugins/plugin_instance.cc

Issue 354005: Do not touch a NPStream object when it is already destructed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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_instance.cc
===================================================================
--- webkit/glue/plugins/plugin_instance.cc (revision 30678)
+++ webkit/glue/plugins/plugin_instance.cc (working copy)
@@ -207,8 +207,7 @@
DCHECK(npp_functions_ != 0);
DCHECK(npp_functions_->destroystream != 0);
- if (stream == NULL || (stream->ndata == NULL) ||
- !IsValidStream(stream))
+ if (stream == NULL || !IsValidStream(stream) || (stream->ndata == NULL))
return NPERR_INVALID_INSTANCE_ERROR;
if (npp_functions_->destroystream != 0) {
« 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