[Webkit-unassigned] [Bug 17199] New: ElementRareDataMap should use OwnPtr to avoid any possible leaks
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 6 13:34:59 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17199
Summary: ElementRareDataMap should use OwnPtr to avoid any
possible leaks
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: mjs at apple.com
ElementRareDataMap should use OwnPtr to avoid any possible leaks
Assuming this is safe,
typedef HashMap<const Element*, ElementRareData*> ElementRareDataMap;
Should be changed to:
typedef HashMap<const Element*, OwnPtr<ElementRareData>> ElementRareDataMap;
To avoid any possible leaks. Holding new'd objects in raw pointers is
dangerous.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list