Changeset 910 in webkit for trunk/JavaScriptCore/kjs/object.cpp


Ignore:
Timestamp:
Mar 30, 2002, 10:48:51 PM (23 years ago)
Author:
mjs
Message:

Fixed Radar 2891272 (JavaScript crashes loading quicktime.com and
apple.com)

  • kjs/object.cpp: (ObjectImp::~ObjectImp): Don't call setGCAlloc on object internals pointed to, because they may have already been collected by the time this object is collected, and in that case we would corrupt the malloc arena.
  • Makefile.am: Make the stamp file depend on all the sources and headers so the framework gets rebuilt properly.
  • JavaScriptCore.pbproj/project.pbxproj: Some random numbers moved around. No idea what I really changed.
File:
1 edited

Legend:

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

    r798 r910  
    202202{
    203203  //fprintf(stderr,"ObjectImp::~ObjectImp %p\n",(void*)this);
     204#if 0 // Those could be already deleted. The collector ensures no order
     205      // ### Check if this leads to memory leaks....
    204206  if (_proto)
    205207    _proto->setGcAllowed();
     
    208210  if (_scope)
    209211    _scope->setGcAllowed();
     212#endif
    210213  delete _prop;
    211214}
Note: See TracChangeset for help on using the changeset viewer.