Changeset 70557 in webkit


Ignore:
Timestamp:
Oct 26, 2010 12:47:41 PM (13 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

2010-10-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fix an assert with QtPixmapInstance creation.
https://bugs.webkit.org/show_bug.cgi?id=48323

This places the newly refcounted QtPixmapInstance in a RefPtr
to prevent an assert on the first ref() call.

  • bridge/qt/qt_pixmapruntime.cpp: (JSC::Bindings::QtPixmapInstance::createPixmapRuntimeObject):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70555 r70557  
     12010-10-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fix an assert with QtPixmapInstance creation.
     6        https://bugs.webkit.org/show_bug.cgi?id=48323
     7
     8        This places the newly refcounted QtPixmapInstance in a RefPtr
     9        to prevent an assert on the first ref() call.
     10
     11        * bridge/qt/qt_pixmapruntime.cpp:
     12        (JSC::Bindings::QtPixmapInstance::createPixmapRuntimeObject):
     13
    1142010-10-26  Kenichi Ishibashi  <bashi@google.com>
    215
  • trunk/WebCore/bridge/qt/qt_pixmapruntime.cpp

    r70503 r70557  
    356356{
    357357    JSLock lock(SilenceAssertionsOnly);
    358     QtPixmapInstance* instance = new QtPixmapInstance(root, data);
     358    RefPtr<QtPixmapInstance> instance = adoptRef(new QtPixmapInstance(root, data));
    359359    return instance->createRuntimeObject(exec);
    360360}
Note: See TracChangeset for help on using the changeset viewer.