⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248085 in webkit


Ignore:
Timestamp:
Jul 31, 2019, 5:12:18 PM (7 years ago)
Author:
dino@apple.com
Message:

WKImagePreviewViewController not being autoreleased
https://bugs.webkit.org/show_bug.cgi?id=200325
<rdar://problem/53788214>

Reviewed by Wenson Hsieh.

Wenson noticed I wasn't autoreleasing the WKImagePreviewViewController.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView continueContextMenuInteraction:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r248047 r248085  
     12019-07-31  Dean Jackson  <dino@apple.com>
     2
     3        WKImagePreviewViewController not being autoreleased
     4        https://bugs.webkit.org/show_bug.cgi?id=200325
     5        <rdar://problem/53788214>
     6
     7        Reviewed by Wenson Hsieh.
     8
     9        Wenson noticed I wasn't autoreleasing the WKImagePreviewViewController.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView continueContextMenuInteraction:]):
     13
    1142019-07-31  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

    r248039 r248085  
    79947994                    return nil;
    79957995
    7996                 return [[WKImagePreviewViewController alloc] initWithCGImage:cgImage defaultActions:nil elementInfo:elementInfo.get()];
     7996                return [[[WKImagePreviewViewController alloc] initWithCGImage:cgImage defaultActions:nil elementInfo:elementInfo.get()] autorelease];
    79977997            };
    79987998
Note: See TracChangeset for help on using the changeset viewer.