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)
committerDaniel Mihalyi <daniel.mihalyi@mattakis.com>
Thu, 21 Aug 2014 13:57:25 +0000 (15:57 +0200)
Change-Id: I574fcacf754c1da1dc03459d5859b04bcebeac11
Signed-off-by: Daniel Mihalyi <daniel.mihalyi@mattakis.com>
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);