Ignore:
Timestamp:
Jun 17, 2006, 3:48:33 AM (19 years ago)
Author:
ddkilzer
Message:

JavaScriptCore:

Reviewed by ggaren.

http://bugzilla.opendarwin.org/show_bug.cgi?id=9476
REGRESSION: Reproducible crash after closing window after viewing
css2.1/t0803-c5501-imrgn-t-00-b-ag.html

  • kjs/debugger.cpp: (Debugger::detach): Call setDebugger(0) for all interpreters removed from the 'attached to a debugger' list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/debugger.cpp

    r14834 r14896  
    6969void Debugger::detach(Interpreter* interp)
    7070{
    71   if (interp && interp->debugger() == this)
    72     interp->setDebugger(0);
    73 
    7471  // iterate the addresses where AttachedInterpreter pointers are stored
    7572  // so we can unlink items from the list
     
    7976    if (!interp || q->interp == interp) {
    8077      *p = q->next;
     78      q->interp->setDebugger(0);
    8179      delete q;
    82     } else {
     80    } else
    8381      p = &q->next;
    84     }
    8582  }
    8683}
Note: See TracChangeset for help on using the changeset viewer.