Changeset 10354 in webkit for trunk/JavaScriptCore/kjs/internal.h


Ignore:
Timestamp:
Aug 26, 2005, 4:46:27 PM (20 years ago)
Author:
mjs
Message:

Reviewed by John.

<rdar://problem/4224911> many many leaks in kjsyyparse with malformed Javascript

Record all nodes that are created during parsing, and delete any
that are left floating with a refcount of 0.

  • kjs/internal.cpp: (KJS::Parser::saveNewNode): (KJS::clearNewNodes): (KJS::Parser::parse):
  • kjs/internal.h:
  • kjs/nodes.cpp: (Node::Node):
  • kjs/nodes.h: (KJS::Node::refcount):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/internal.h

    r10352 r10354  
    3939namespace KJS {
    4040
     41  class Node;
    4142  class ProgramNode;
    4243  class FunctionBodyNode;
     
    201202    static void accept(ProgramNode *prog);
    202203
     204    static void saveNewNode(Node *node);
     205
    203206    static int sid;
    204207  };
Note: See TracChangeset for help on using the changeset viewer.