Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor code fixes

  • Loading branch information...
commit 8ea2c9372044ae5ba9e09f5fd2754dfd1f2f23a3 1 parent 1f3c20b
@onecrayon authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 ShellActions/Classes/OCShellAction.m
View
5 ShellActions/Classes/OCShellAction.m
@@ -147,8 +147,9 @@ - (void)dealloc {
MRRelease(input);
MRRelease(alternate);
MRRelease(output);
+ MRRelease(outputFormat);
MRRelease(bundlePath);
- [super dealloc];
+ [super dealloc];
}
- (BOOL)canPerformActionWithContext:(id)context {
@@ -280,7 +281,7 @@ - (BOOL)performActionWithContext:(id)context error:(NSError **)outError {
for (NSValue *rangeValue in ranges) {
range = [rangeValue rangeValue];
// Setup our per-loop environment variables
- NSString *eCurrentWord = [context getWordAtIndex:range.location range:&wordRange];
+ eCurrentWord = [context getWordAtIndex:range.location range:&wordRange];
[env addObjectOrEmptyString:eCurrentWord forKey:@"EDITOR_CURRENT_WORD"];
[env addObjectOrEmptyString:[[context string] substringWithRange:[[context lineStorage] lineRangeForRange:NSMakeRange(range.location, 0)]] forKey:@"EDITOR_CURRENT_LINE"];
eLineNumber = [[context lineStorage] lineNumberForIndex:range.location];
Please sign in to comment.
Something went wrong with that request. Please try again.