File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,6 @@ - (id) init
125
125
}
126
126
127
127
self = [ super init ];
128
-
129
- sSingleton = self;
130
128
131
129
if ( self ) {
132
130
if ( ! [ NSBundle loadNibNamed: @" MenubarMenu" owner: self ] )
@@ -187,7 +185,7 @@ - (void) awakeFromNib
187
185
+ (CTFMenubarMenuController*) sharedController
188
186
{
189
187
if ( !sSingleton )
190
- [ [ CTFMenubarMenuController alloc ] init ];
188
+ sSingleton = [ [ CTFMenubarMenuController alloc ] init ];
191
189
192
190
return sSingleton ;
193
191
}
Original file line number Diff line number Diff line change @@ -86,9 +86,6 @@ - (id) initWithArguments:(NSDictionary *)arguments
86
86
{
87
87
self = [super init ];
88
88
if (self) {
89
- // get defaults
90
- NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults ];
91
-
92
89
self.webView = [[[arguments objectForKey: WebPlugInContainerKey ] webFrame ] webView ];
93
90
94
91
self.container = [arguments objectForKey: WebPlugInContainingElementKey ];
@@ -133,7 +130,7 @@ - (id) initWithArguments:(NSDictionary *)arguments
133
130
#endif
134
131
135
132
_fromYouTube = [self .host isEqualToString: @" www.youtube.com" ]
136
- || [flashvars rangeOfString: @" www.youtube.com" ].location != NSNotFound ;
133
+ || ( flashvars != nil && [flashvars rangeOfString: @" www.youtube.com" ].location != NSNotFound ) ;
137
134
138
135
// Handle if this is loading from whitelist
139
136
@@ -208,6 +205,7 @@ - (void) dealloc
208
205
self.container = nil ;
209
206
self.host = nil ;
210
207
self.webView = nil ;
208
+ self.baseURL = nil ;
211
209
212
210
[_flashVars release ];
213
211
[_badgeText release ];
You can’t perform that action at this time.
0 commit comments