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

Unified Diff: ppapi/shared_impl/var_tracker.cc

Issue 8953017: Pepper: unit tests for VarTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: ppapi/shared_impl/var_tracker.cc
diff --git a/ppapi/shared_impl/var_tracker.cc b/ppapi/shared_impl/var_tracker.cc
index d95a759069169bdb2a44fe384b6b74254efcd3e9..0687d049a053bd8b2444478a4df602d21626086f 100644
--- a/ppapi/shared_impl/var_tracker.cc
+++ b/ppapi/shared_impl/var_tracker.cc
@@ -155,6 +155,7 @@ bool VarTracker::DeleteObjectInfoIfNecessary(VarMap::iterator iter) {
if (iter->second.ref_count != 0 ||
iter->second.track_with_no_reference_count != 0)
return false; // Object still alive.
+ iter->second.var->ResetVarID();
live_vars_.erase(iter);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698