Changeset 150930 in webkit


Ignore:
Timestamp:
May 29, 2013 2:28:28 PM (11 years ago)
Author:
Brent Fulgham
Message:

[Windows] Be consistent with allocation/deallocation behavior
https://bugs.webkit.org/show_bug.cgi?id=116998

Reviewed by Anders Carlsson.

  • WebPreferences.cpp:

(WebPreferences::setStringValue): Switch from using _wcsdup and
CFStringCreateWithCharactersNoCopy to just use the standard
CFStringCreateWithCharacters call.

Location:
trunk/Source/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/win/ChangeLog

    r150852 r150930  
     12013-05-29  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Windows] Be consistent with allocation/deallocation behavior
     4        https://bugs.webkit.org/show_bug.cgi?id=116998
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * WebPreferences.cpp:
     9        (WebPreferences::setStringValue): Switch from using _wcsdup and
     10        CFStringCreateWithCharactersNoCopy to just use the standard
     11        CFStringCreateWithCharacters call.
     12
    1132013-05-28  Brent Fulgham  <bfulgham@apple.com>
    214
  • trunk/Source/WebKit/win/WebPreferences.cpp

    r149716 r150930  
    355355        return;
    356356   
    357     RetainPtr<CFStringRef> valueRef = adoptCF(CFStringCreateWithCharactersNoCopy(0, (UniChar*)_wcsdup(value), (CFIndex)wcslen(value), kCFAllocatorMalloc));
     357    RetainPtr<CFStringRef> valueRef = adoptCF(CFStringCreateWithCharacters(0, reinterpret_cast<const UniChar*>(value), static_cast<CFIndex>(wcslen(value))));
    358358    setValueForKey(key, valueRef.get());
    359359
Note: See TracChangeset for help on using the changeset viewer.