WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
25652
wx port's PlatformPath may be deleted while in use
https://bugs.webkit.org/show_bug.cgi?id=25652
Summary
wx port's PlatformPath may be deleted while in use
Kevin Watters
Reported
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.
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
View All
Add attachment
proposed patch, testcase, etc.
Kevin Watters
Comment 1
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.
Kevin Ollivier
Comment 2
2009-05-08 15:53:59 PDT
Landed in
r43418
, thanks!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug