[Windows] Unreviewed test fix. Prevent crash when changing URL paths during testing.
A shared BSTR value (_bstr_t) was being reallocated outside the smart pointer, causing it to be double-freed. * WinLauncher/WinLauncher.cpp: (EditProc): Be explicit about type passed to loadURL. (loadURL): Create a shallow copy of the BSTR so we only allocate memory if needed. Use _bstr_t so that reallocating the BSTR is done with the knowledge of the smart pointer. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 19 additions and 6 deletions