Changeset 94894 in webkit


Ignore:
Timestamp:
Sep 9, 2011 6:16:12 PM (13 years ago)
Author:
jchaffraix@webkit.org
Message:

[V8] V8WebKitPoint::constructorCallback leaks
https://bugs.webkit.org/show_bug.cgi?id=67865

Reviewed by Adam Barth.

Covered by fast/js/instanceof-XMLHttpRequest.html under Valgrind.

  • bindings/v8/custom/V8WebKitPointConstructor.cpp:

(WebCore::V8WebKitPoint::constructorCallback): Changed the code
to use a RefPtr (per our usual style). Also use toV8 that will
take care of properly wrapping the object.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94893 r94894  
     12011-09-09  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        [V8] V8WebKitPoint::constructorCallback leaks
     4        https://bugs.webkit.org/show_bug.cgi?id=67865
     5
     6        Reviewed by Adam Barth.
     7
     8        Covered by fast/js/instanceof-XMLHttpRequest.html under Valgrind.
     9
     10        * bindings/v8/custom/V8WebKitPointConstructor.cpp:
     11        (WebCore::V8WebKitPoint::constructorCallback): Changed the code
     12        to use a RefPtr (per our usual style). Also use toV8 that will
     13        take care of properly wrapping the object.
     14
    1152011-09-09  Chris Rogers  <crogers@google.com>
    216
  • trunk/Source/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp

    r94357 r94894  
    6262        }
    6363    }
    64     PassRefPtr<WebKitPoint> point = WebKitPoint::create(x, y);
    65     point->ref();
     64    RefPtr<WebKitPoint> point = WebKitPoint::create(x, y);
    6665    V8DOMWrapper::setDOMWrapper(args.Holder(), &info, point.get());
    67     return args.Holder();
     66    return toV8(point.release(), args.Holder());
    6867}
    6968
Note: See TracChangeset for help on using the changeset viewer.