Changeset 129598 in webkit


Ignore:
Timestamp:
Sep 25, 2012 11:55:27 PM (12 years ago)
Author:
Patrick Gansterer
Message:

[WIN] Fix ASSERT in BString after r128988.

  • platform/win/BString.cpp:

(WebCore::BString::~BString):
(WebCore::BString::adoptBSTR):
(WebCore::BString::clear): Set pointer to 0 after freeing.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r129591 r129598  
     12012-09-25  Patrick Gansterer  <paroga@webkit.org>
     2
     3        [WIN] Fix ASSERT in BString after r128988.
     4
     5        * platform/win/BString.cpp:
     6        (WebCore::BString::~BString):
     7        (WebCore::BString::adoptBSTR):
     8        (WebCore::BString::clear): Set pointer to 0 after freeing.
     9
    1102012-09-25  Yoshifumi Inoue  <yosin@chromium.org>
    211
  • trunk/Source/WebCore/platform/win/BString.cpp

    r128988 r129598  
    107107BString::~BString()
    108108{
    109     clear();
     109    SysFreeString(m_bstr);
    110110}
    111111
     
    120120void BString::adoptBSTR(BSTR bstr)
    121121{
    122     clear();
     122    SysFreeString(m_bstr);
    123123    m_bstr = bstr;
    124124}
     
    127127{
    128128    SysFreeString(m_bstr);
     129    m_bstr = 0;
    129130}
    130131
Note: See TracChangeset for help on using the changeset viewer.