Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Minor code fixes

  • Loading branch information...
commit 8ea2c9372044ae5ba9e09f5fd2754dfd1f2f23a3 1 parent 1f3c20b
Ian Beck authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 ShellActions/Classes/OCShellAction.m
5 ShellActions/Classes/OCShellAction.m
@@ -147,8 +147,9 @@ - (void)dealloc {
147 147 MRRelease(input);
148 148 MRRelease(alternate);
149 149 MRRelease(output);
  150 + MRRelease(outputFormat);
150 151 MRRelease(bundlePath);
151   - [super dealloc];
  152 + [super dealloc];
152 153 }
153 154
154 155 - (BOOL)canPerformActionWithContext:(id)context {
@@ -280,7 +281,7 @@ - (BOOL)performActionWithContext:(id)context error:(NSError **)outError {
280 281 for (NSValue *rangeValue in ranges) {
281 282 range = [rangeValue rangeValue];
282 283 // Setup our per-loop environment variables
283   - NSString *eCurrentWord = [context getWordAtIndex:range.location range:&wordRange];
  284 + eCurrentWord = [context getWordAtIndex:range.location range:&wordRange];
284 285 [env addObjectOrEmptyString:eCurrentWord forKey:@"EDITOR_CURRENT_WORD"];
285 286 [env addObjectOrEmptyString:[[context string] substringWithRange:[[context lineStorage] lineRangeForRange:NSMakeRange(range.location, 0)]] forKey:@"EDITOR_CURRENT_LINE"];
286 287 eLineNumber = [[context lineStorage] lineNumberForIndex:range.location];

0 comments on commit 8ea2c93

Please sign in to comment.
Something went wrong with that request. Please try again.