Changeset 86439 in webkit


Ignore:
Timestamp:
May 13, 2011 9:56:08 AM (13 years ago)
Author:
brettw@chromium.org
Message:

2011-05-13 Brett Wilson <brettw@chromium.org>

Reviewed by Adam Barth.

Don't destroy a null FcPattern when failing to do a FontConfig match.
This crashes, and there's nothing FcDestroy could do with a null
pointer even if it didn't crash.
https://bugs.webkit.org/show_bug.cgi?id=60777

  • src/gtk/WebFontInfo.cpp: (WebKit::WebFontInfo::renderStyleForStrike):
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r86425 r86439  
     12011-05-13  Brett Wilson  <brettw@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Don't destroy a null FcPattern when failing to do a FontConfig match.
     6        This crashes, and there's nothing FcDestroy could do with a null
     7        pointer even if it didn't crash.
     8        https://bugs.webkit.org/show_bug.cgi?id=60777
     9
     10        * src/gtk/WebFontInfo.cpp:
     11        (WebKit::WebFontInfo::renderStyleForStrike):
     12
    1132011-05-11  Hans Wennborg  <hans@chromium.org>
    214
  • trunk/Source/WebKit/chromium/src/gtk/WebFontInfo.cpp

    r80489 r86439  
    155155    out->setDefaults();
    156156
    157     if (!match) {
    158         FcPatternDestroy(match);
     157    if (!match)
    159158        return;
    160     }
    161159
    162160    FcBool b;
Note: See TracChangeset for help on using the changeset viewer.