Changeset 20991 in webkit


Ignore:
Timestamp:
Apr 21, 2007 1:09:45 AM (17 years ago)
Author:
bdash
Message:

2007-04-21 Mitz Pettel <mitz@webkit.org>

Reviewed by Adam.

  • kjs/array_object.cpp: (ArrayInstance::sort): Free the old storage, not the new one.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r20977 r20991  
     12007-04-21  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Adam.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=13428
     6          REGRESSION (r20973-r20976): Failing ecma/Array/15.4.4.5-3.js
     7
     8        - fix http://bugs.webkit.org/show_bug.cgi?id=13429
     9          REGRESSION (r20973-r20976): Crashing in fast/dom/plugin-attributes-enumeration.html
     10
     11        * kjs/array_object.cpp:
     12        (ArrayInstance::sort): Free the old storage, not the new one.
     13
    1142007-04-20  Maciej Stachowiak  <mjs@apple.com>
    215
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r20974 r20991  
    318318        memcpy(storageCopy, storage, capacity * sizeof(JSValue*));
    319319        mergesort(storageCopy, lengthNotIncludingUndefined, sizeof(JSValue *), compareByStringForQSort);
     320        fastFree(storage);
    320321        storage = storageCopy;
    321         fastFree(storage);
    322322        execForCompareByStringForQSort = oldExec;
    323323        return;
     
    385385        memcpy(storageCopy, storage, capacity * sizeof(JSValue*));
    386386        mergesort(storageCopy, lengthNotIncludingUndefined, sizeof(JSValue *), compareWithCompareFunctionForQSort);
     387        fastFree(storage);
    387388        storage = storageCopy;
    388389        compareWithCompareFunctionArguments = oldArgs;
Note: See TracChangeset for help on using the changeset viewer.