Changeset 141305 in webkit


Ignore:
Timestamp:
Jan 30, 2013 2:16:25 PM (11 years ago)
Author:
mhahnenberg@apple.com
Message:

Objective-C API: exceptionHandler needs to be released in JSContext dealloc
https://bugs.webkit.org/show_bug.cgi?id=108378

Reviewed by Filip Pizlo.

JSContext has a (copy) exceptionHandler property that it doesn't release in dealloc.
That sounds like the potential for a leak. It should be released.

  • API/JSContext.mm:

(-[JSContext dealloc]):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSContext.mm

    r141176 r141305  
    164164    JSGlobalContextRelease(m_context);
    165165    [m_virtualMachine release];
     166    [self.exceptionHandler release];
    166167    [super dealloc];
    167168}
  • trunk/Source/JavaScriptCore/ChangeLog

    r141301 r141305  
     12013-01-30  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        Objective-C API: exceptionHandler needs to be released in JSContext dealloc
     4        https://bugs.webkit.org/show_bug.cgi?id=108378
     5
     6        Reviewed by Filip Pizlo.
     7
     8        JSContext has a (copy) exceptionHandler property that it doesn't release in dealloc.
     9        That sounds like the potential for a leak. It should be released.
     10
     11        * API/JSContext.mm:
     12        (-[JSContext dealloc]):
     13
    1142013-01-30  Filip Pizlo  <fpizlo@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.