Changeset 27882 in webkit for trunk/JavaScriptCore/API


Ignore:
Timestamp:
Nov 17, 2007, 9:36:52 PM (18 years ago)
Author:
[email protected]
Message:

Prevent testapi from reporting false leaks.

Clear out local variables pointing at JSObjectRefs to allow their values to be collected.

Reviewed by Sam Weinig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/testapi.c

    r27881 r27882  
    829829    }
    830830
     831    // Clear out local variables pointing at JSObjectRefs to allow their values to be collected
     832    function = NULL;
     833    v = NULL;
     834    o = NULL;
     835    globalObject = NULL;
     836
    831837    JSStringRelease(jsEmptyIString);
    832838    JSStringRelease(jsOneIString);
     
    837843    JSStringRelease(goodSyntax);
    838844    JSStringRelease(badSyntax);
    839    
     845
    840846    JSGlobalContextRelease(context);
    841847    JSGarbageCollect(context);
Note: See TracChangeset for help on using the changeset viewer.