Changeset 76434 in webkit


Ignore:
Timestamp:
Jan 22, 2011 1:15:06 AM (13 years ago)
Author:
ap@apple.com
Message:

2011-01-22 Alexey Proskuryakov <ap@apple.com>

Reviewed by Dan Bernstein.

https://bugs.webkit.org/show_bug.cgi?id=52950
Leak in WebPage::drawRectToPDF

  • WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::drawRectToPDF): Use RetainPtr here, too.
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r76433 r76434  
     12011-01-22  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=52950
     6        Leak in WebPage::drawRectToPDF
     7
     8        * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::drawRectToPDF): Use RetainPtr here, too.
     9
    1102011-01-22  Alexey Proskuryakov  <ap@apple.com>
    211
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r76417 r76434  
    17971797    CGRect mediaBox = CGRectMake(0, 0, frame->size().width(), frame->size().height());
    17981798    RetainPtr<CGContextRef> context(AdoptCF, CGPDFContextCreate(pdfDataConsumer.get(), &mediaBox, 0));
    1799     CFDictionaryRef pageInfo = CFDictionaryCreateMutable(0, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
    1800     CGPDFContextBeginPage(context.get(), pageInfo);
     1799    RetainPtr<CFDictionaryRef> pageInfo(AdoptCF, CFDictionaryCreateMutable(0, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
     1800    CGPDFContextBeginPage(context.get(), pageInfo.get());
    18011801
    18021802    GraphicsContext ctx(context.get());
Note: See TracChangeset for help on using the changeset viewer.