Commit 9a8b9fb4 authored by mrobinson@webkit.org's avatar mrobinson@webkit.org
Browse files

2010-05-20 Martin Robinson <mrobinson@igalia.com>

        Reviewed by Ojan Vafai.

        editing/selection/extend-selection-after-double-click.html crashes on the Leopard Intel release bot
        https://bugs.webkit.org/show_bug.cgi?id=39431

        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setEditingBehavior):
        Prevent a double-free by not having this variable be in the auto-release pool.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 17975f00
2010-05-20 Martin Robinson <mrobinson@igalia.com>
Reviewed by Ojan Vafai.
editing/selection/extend-selection-after-double-click.html crashes on the Leopard Intel release bot
https://bugs.webkit.org/show_bug.cgi?id=39431
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::setEditingBehavior):
Prevent a double-free by not having this variable be in the auto-release pool.
2010-05-20 Martin Robinson <mrobinson@webkit.org>
 
Reviewed by Ojan Vafai.
......@@ -852,7 +852,7 @@ void LayoutTestController::authenticateSession(JSStringRef url, JSStringRef user
void LayoutTestController::setEditingBehavior(const char* editingBehavior)
{
NSString* editingBehaviorNS = [NSString stringWithUTF8String:editingBehavior];
NSString* editingBehaviorNS = [[NSString alloc] initWithUTF8String:editingBehavior];
if ([editingBehaviorNS isEqualToString:@"mac"])
[[WebPreferences standardPreferences] setEditingBehavior:WebKitEditingMacBehavior];
if ([editingBehaviorNS isEqualToString:@"win"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment