<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25652</bug_id>
          
          <creation_ts>2009-05-08 13:58:38 -0700</creation_ts>
          <short_desc>wx port&apos;s PlatformPath may be deleted while in use</short_desc>
          <delta_ts>2009-05-08 15:53:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit wx</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Kevin Watters">kevinwatters</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120464</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Watters">kevinwatters</who>
    <bug_when>2009-05-08 13:58:38 -0700</bug_when>
    <thetext>PathWx.cpp&apos;s Path(const Path&amp; path) constructor assigns m_path to another Path object&apos;s m_path. This is invalid since wx refcounts the underlying object and may delete it later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120465</commentid>
    <comment_count>1</comment_count>
      <attachid>30140</attachid>
    <who name="Kevin Watters">kevinwatters</who>
    <bug_when>2009-05-08 14:01:09 -0700</bug_when>
    <thetext>Created attachment 30140
Use wxGraphicsPath copy constructor to avoid refcount bug

Use wxGraphicsPath(const wxGraphicsPath&amp;) instead of just stealing a reference to the object, so that we aren&apos;t bit by a segfault (or worse) later when the wxObject&apos;s refcount goes to zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120483</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2009-05-08 15:53:59 -0700</bug_when>
    <thetext>Landed in r43418, thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>30140</attachid>
            <date>2009-05-08 14:01:09 -0700</date>
            <delta_ts>2009-05-08 15:49:46 -0700</delta_ts>
            <desc>Use wxGraphicsPath copy constructor to avoid refcount bug</desc>
            <filename>path-fix.patch</filename>
            <type>text/plain</type>
            <size>1257</size>
            <attacher name="Kevin Watters">kevinwatters</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0MzQwOCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDktMDUtMDggIEtldmluIFdhdHRlcnMgIDxrZXZpbndhdHRlcnNA
Z21haWwuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgIE1ha2Ugc3VyZSB0aGUgcGF0aCdzIHJlZmRhdGEgaXNuJ3QgZGVsZXRlZCBiZWZvcmUgd2Un
cmUgZG9uZSB3aXRoIHRoZSBvYmplY3QuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy93
eC9QYXRoV3guY3BwOgorICAgICAgICAoV2ViQ29yZTo6UGF0aDo6flBhdGgpOgorICAgICAgICAo
V2ViQ29yZTo6UGF0aDo6UGF0aCk6CisgICAgICAgIChXZWJDb3JlOjpQYXRoOjp0cmFuc2xhdGUp
OgorCiAyMDA5LTA1LTA4ICBFcmljIENhcmxzb24gIDxlcmljLmNhcmxzb25AYXBwbGUuY29tPgog
CiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogV2ViQ29yZS9wbGF0Zm9y
bS9ncmFwaGljcy93eC9QYXRoV3guY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvcGxhdGZvcm0v
Z3JhcGhpY3Mvd3gvUGF0aFd4LmNwcAkocmV2aXNpb24gNDM0MDgpCisrKyBXZWJDb3JlL3BsYXRm
b3JtL2dyYXBoaWNzL3d4L1BhdGhXeC5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTY2LDExICs2Niwx
MiBAQAogCiBQYXRoOjp+UGF0aCgpCiB7CisgICAgY2xlYXIoKTsKIH0KIAogUGF0aDo6UGF0aChj
b25zdCBQYXRoJiBwYXRoKQogeyAKLSAgICBtX3BhdGggPSAoUGxhdGZvcm1QYXRoKikmcGF0aC5t
X3BhdGg7CisgICAgbV9wYXRoID0gbmV3IHd4R3JhcGhpY3NQYXRoKCpwYXRoLm1fcGF0aCk7CiB9
CiAKIGJvb2wgUGF0aDo6Y29udGFpbnMoY29uc3QgRmxvYXRQb2ludCYgcG9pbnQsIGNvbnN0IFdp
bmRSdWxlIHJ1bGUpIGNvbnN0CkBAIC04OSw3ICs5MCw3IEBACiAKIHZvaWQgUGF0aDo6dHJhbnNs
YXRlKGNvbnN0IEZsb2F0U2l6ZSYpCiB7IAotICAgIG5vdEltcGxlbWVudGVkKCk7IAorICAgIG5v
dEltcGxlbWVudGVkKCk7CiB9CiAKIEZsb2F0UmVjdCBQYXRoOjpib3VuZGluZ1JlY3QoKSBjb25z
dCAK
</data>
<flag name="review"
          id="15139"
          type_id="1"
          status="+"
          setter="kevino"
    />
          </attachment>
      

    </bug>

</bugzilla>