Commit e4c26dea authored by darin's avatar darin
Browse files

LayoutTests:

        Reviewed by Geoff (well, half of it at least).

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9788
          storage leaks in Objective-C tests

        * plugins/jsobjc-simple.html: Add an autorelease to fix a storage leak.

WebKitTools:

        Reviewed by Geoff (well, half of it at least).

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9788
          storage leaks in Objective-C tests

        * DumpRenderTree/DumpRenderTree.m: (-[LayoutTestController keepWebHistory]):
        * DumpRenderTree/ObjCPlugin.m: (-[ObjCPlugin removeBridgeRestrictions:]):
        Add a release to fix a storage leak.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d4d43c1b
2006-07-08 Darin Adler <darin@apple.com>
Reviewed by Geoff (well, half of it at least).
- http://bugzilla.opendarwin.org/show_bug.cgi?id=9788
storage leaks in Objective-C tests
* plugins/jsobjc-simple.html: Add an autorelease to fix a storage leak.
2006-07-08 Darin Adler <darin@apple.com>
 
- clear up a few minor housekeeping problems
......@@ -19,7 +19,7 @@ function test() {
// test creating an obj-c object
var NSCell = objc('NSCell');
print('got class: ' + NSCell);
var cell = NSCell.alloc().init();
var cell = NSCell.alloc().init().autorelease();
print('created object: <' + cell.className() + '>');
cell.setValue_forKey_('zoe', 'stringValue');
print('set string value: ' + cell.stringValue());
......
2006-07-08 Darin Adler <darin@apple.com>
Reviewed by Geoff (well, half of it at least).
- http://bugzilla.opendarwin.org/show_bug.cgi?id=9788
storage leaks in Objective-C tests
* DumpRenderTree/DumpRenderTree.m: (-[LayoutTestController keepWebHistory]):
* DumpRenderTree/ObjCPlugin.m: (-[ObjCPlugin removeBridgeRestrictions:]):
Add a release to fix a storage leak.
2006-07-08 Darin Adler <darin@apple.com>
* Scripts/do-webcore-rename: A few more.
......
......@@ -633,8 +633,11 @@ - (void)clearBackForwardList
- (void)keepWebHistory
{
if (![WebHistory optionalSharedHistory])
[WebHistory setOptionalSharedHistory:[[WebHistory alloc] init]];
if (![WebHistory optionalSharedHistory]) {
WebHistory *history = [[WebHistory alloc] init];
[WebHistory setOptionalSharedHistory:history];
[history release];
}
}
- (void)waitUntilDone
......
......@@ -149,7 +149,9 @@ - (void)removeBridgeRestrictions:(id)container
[NSObject setAllowsScriptsFullAccess:YES];
// store a JSObjC instance into the provided container
[container setValue:[[JSObjC alloc] init] forKey:@"objc"];
JSObjC *objc = [[JSObjC alloc] init];
[container setValue:objc forKey:@"objc"];
[objc release];
}
@end
Supports Markdown
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