OSDN Git Service

Fixed wrong field usage in Instrumentation::RemoveListener
authorDaniel Mihalyi <daniel.mihalyi@mattakis.com>
Thu, 21 Aug 2014 13:57:25 +0000 (15:57 +0200)
committerSebastien Hertz <shertz@google.com>
Fri, 22 Aug 2014 05:34:30 +0000 (07:34 +0200)
Signed-off-by: Daniel Mihalyi <daniel.mihalyi@mattakis.com>
Bug: 16814665

(cherry picked from commit 6644521cfaff718a55e3602efb3b54bf19a0cd1a)

Change-Id: Ie68c70ba6ee2e0bd918717c8659c057f98e66ff7

runtime/instrumentation.cc

index 47d35f3..0f45b9e 100644 (file)
@@ -495,7 +495,7 @@ void Instrumentation::RemoveListener(InstrumentationListener* listener, uint32_t
     }
   }
   if ((events & kFieldRead) != 0) {
-    if (have_dex_pc_listeners_) {
+    if (have_field_read_listeners_) {
       std::list<InstrumentationListener*>* modified =
           new std::list<InstrumentationListener*>(*field_read_listeners_.get());
       modified->remove(listener);