Changeset 82890 in webkit


Ignore:
Timestamp:
Apr 4, 2011 4:19:05 PM (13 years ago)
Author:
Martin Robinson
Message:

2011-04-04 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[Cairo] Memory leak in RefPtrCairo
https://bugs.webkit.org/show_bug.cgi?id=57758

No new tests. This just fixes a memory leak.

  • platform/graphics/cairo/RefPtrCairo.cpp: (WTF::derefIfNotNull): Deref should unref the cairo_font_fact_t, not reference it.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r82889 r82890  
     12011-04-04  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [Cairo] Memory leak in RefPtrCairo
     6        https://bugs.webkit.org/show_bug.cgi?id=57758
     7
     8        No new tests. This just fixes a memory leak.
     9
     10        * platform/graphics/cairo/RefPtrCairo.cpp:
     11        (WTF::derefIfNotNull): Deref should unref the cairo_font_fact_t, not reference it.
     12
    1132011-04-04  Adrienne Walker  <enne@google.com>
    214
  • trunk/Source/WebCore/platform/graphics/cairo/RefPtrCairo.cpp

    r80744 r82890  
    6262{
    6363    if (LIKELY(ptr != 0))
    64         cairo_font_face_reference(ptr);
     64        cairo_font_face_destroy(ptr);
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.