Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: chrome/browser/ui/cocoa/applescript/element_applescript.mm

Issue 12390058: mac: Fix a few memory leaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/applescript/element_applescript.h" 5 #import "chrome/browser/ui/cocoa/applescript/element_applescript.h"
6 6
7 @implementation ElementAppleScript 7 @implementation ElementAppleScript
8 8
9 @synthesize uniqueID = uniqueID_; 9 @synthesize uniqueID = uniqueID_;
10 @synthesize container = container_; 10 @synthesize container = container_;
11 @synthesize containerProperty = containerProperty_; 11 @synthesize containerProperty = containerProperty_;
12 12
13 // calling objectSpecifier asks an object to return an object specifier 13 // calling objectSpecifier asks an object to return an object specifier
14 // record referring to itself. You must call setContainer:property: before 14 // record referring to itself. You must call setContainer:property: before
15 // you can call this method. 15 // you can call this method.
16 - (NSScriptObjectSpecifier*)objectSpecifier { 16 - (NSScriptObjectSpecifier*)objectSpecifier {
17 return [[NSUniqueIDSpecifier allocWithZone:[self zone]] 17 return [[[NSUniqueIDSpecifier allocWithZone:[self zone]]
18 initWithContainerClassDescription: 18 initWithContainerClassDescription:
19 (NSScriptClassDescription*)[[self container] classDescription] 19 (NSScriptClassDescription*)[[self container] classDescription]
20 containerSpecifier: 20 containerSpecifier:[[self container] objectSpecifier]
21 [[self container] objectSpecifier] 21 key:[self containerProperty]
22 key:[self containerProperty] 22 uniqueID:[self uniqueID]] autorelease];
23 uniqueID:[self uniqueID]];
24 } 23 }
25 24
26 - (void)setContainer:(id)value property:(NSString*)property { 25 - (void)setContainer:(id)value property:(NSString*)property {
27 [self setContainer:value]; 26 [self setContainer:value];
28 [self setContainerProperty:property]; 27 [self setContainerProperty:property];
29 } 28 }
30 29
31 - (void)dealloc { 30 - (void)dealloc {
32 [uniqueID_ release]; 31 [uniqueID_ release];
33 [container_ release]; 32 [container_ release];
34 [containerProperty_ release]; 33 [containerProperty_ release];
35 [super dealloc]; 34 [super dealloc];
36 } 35 }
37 36
38 @end 37 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/password_generation_bubble_controller.mm » ('j') | skia/ext/skia_utils_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698