Open Bug 2015312 Opened 15 hours ago Updated 15 hours ago

memory leak in nsCocoaWindow.mm PopupWindow shadowParameters

Categories

(Core :: Widget: Cocoa, defect)

defect

Tracking

()

People

(Reporter: jaas, Assigned: jaas)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch leak1.patch (obsolete) — Splinter Review

This patch overrides a Cocoa method related to drawing shadows.

The method it overrides (- (NSDictionary*)shadowParameters) should return an autoreleased object. However, it returns an object that is a retained copy and does not autorelease it prior to return.

NSMutableDictionary* copy = [parent mutableCopy];
...
return copy;

The fix should be to autorelease prior to return.

Assignee: nobody → jaas
Attachment #9543380 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: