Bug 25652 - wx port's PlatformPath may be deleted while in use
Summary: wx port's PlatformPath may be deleted while in use
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit wx (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 13:58 PDT by Kevin Watters
Modified: 2009-05-08 15:53 PDT (History)
0 users

See Also:


Attachments
Use wxGraphicsPath copy constructor to avoid refcount bug (1.23 KB, patch)
2009-05-08 14:01 PDT, Kevin Watters
kevino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Watters 2009-05-08 13:58:38 PDT
PathWx.cpp's Path(const Path& path) constructor assigns m_path to another Path object's m_path. This is invalid since wx refcounts the underlying object and may delete it later.
Comment 1 Kevin Watters 2009-05-08 14:01:09 PDT
Created attachment 30140 [details]
Use wxGraphicsPath copy constructor to avoid refcount bug

Use wxGraphicsPath(const wxGraphicsPath&) instead of just stealing a reference to the object, so that we aren't bit by a segfault (or worse) later when the wxObject's refcount goes to zero.
Comment 2 Kevin Ollivier 2009-05-08 15:53:59 PDT
Landed in r43418, thanks!