Changeset 90605 in webkit


Ignore:
Timestamp:
Jul 7, 2011 6:16:07 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] DRT: Leak cairo_t to make the pixel tests stop crashing
https://bugs.webkit.org/show_bug.cgi?id=64107

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-07-07
Reviewed by Kent Tamura.

The pointer is later managed by BitmapContext, but it was being
de-refed and deleted earlier by our RefPtr, causing crashes in all
pixel tests.

We now call leakRef() to make sure it is not removed when our
createBitmapContextFromWebView goes out of context.

  • DumpRenderTree/efl/PixelDumpSupportEfl.cpp:

(createBitmapContextFromWebView):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90594 r90605  
     12011-07-07  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [EFL] DRT: Leak cairo_t to make the pixel tests stop crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=64107
     5
     6        Reviewed by Kent Tamura.
     7
     8        The pointer is later managed by BitmapContext, but it was being
     9        de-refed and deleted earlier by our RefPtr, causing crashes in all
     10        pixel tests.
     11
     12        We now call leakRef() to make sure it is not removed when our
     13        createBitmapContextFromWebView goes out of context.
     14
     15        * DumpRenderTree/efl/PixelDumpSupportEfl.cpp:
     16        (createBitmapContextFromWebView):
     17
    1182011-07-07  Adam Roben  <aroben@apple.com>
    219
  • trunk/Tools/DumpRenderTree/efl/PixelDumpSupportEfl.cpp

    r89053 r90605  
    6464    }
    6565
    66     return BitmapContext::createByAdoptingBitmapAndContext(0, context.get());
     66    return BitmapContext::createByAdoptingBitmapAndContext(0, context.release().leakRef());
    6767}
Note: See TracChangeset for help on using the changeset viewer.