Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
added missing dealloc to HTNotice
Browse files Browse the repository at this point in the history
  • Loading branch information
calebd committed Jan 4, 2011
1 parent d264c48 commit adca35b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
4 changes: 2 additions & 2 deletions hoptoadnotifier/HTFunctions.m
Expand Up @@ -7,8 +7,8 @@
//

#import <execinfo.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#import <sys/types.h>
#import <sys/sysctl.h>

#import "HTNotifier.h"

Expand Down
14 changes: 14 additions & 0 deletions hoptoadnotifier/HTNotice.m
Expand Up @@ -222,5 +222,19 @@ - (NSData *)hoptoadXMLData {
- (void)writeToFile:(NSString *)file {
[NSKeyedArchiver archiveRootObject:self toFile:file];
}
- (void)dealloc {
self.operatingSystemVersion = nil;
self.applicationVersion = nil;
self.executableName = nil;
self.exceptionName = nil;
self.exceptionReason = nil;
self.platform = nil;
self.environmentName = nil;
self.environmentInfo = nil;
self.callStack = nil;
self.viewControllerName = nil;

[super dealloc];
}

@end
1 change: 0 additions & 1 deletion hoptoadnotifier/HTNotifier.h
Expand Up @@ -129,6 +129,5 @@ extern NSString * const HTNotifierAppStoreEnvironment;
extern NSString * const HTNotifierDirectoryName;
extern NSString * const HTNotifierPathExtension;
extern NSString * const HTNotifierAlwaysSendKey;

#define HTLocalizedString(key) \
NSLocalizedStringFromTable((key), @"HTNotifier", @"")
11 changes: 3 additions & 8 deletions hoptoadnotifier/HTNotifier.m
Expand Up @@ -240,9 +240,9 @@ - (void)dealloc {
[self unregisterNotifications];
HTStopHandler();

if (reachability != NULL) { CFRelease(reachability), reachability = NULL; }
[apiKey release], apiKey = nil;
[environmentName release], environmentName = nil;
if (reachability != NULL) { CFRelease(reachability);reachability = NULL; }
[apiKey release];apiKey = nil;
[environmentName release];environmentName = nil;
self.environmentInfo = nil;

[super dealloc];
Expand All @@ -259,8 +259,3 @@ - (void)writeTestNotice {
}

@end

@implementation HTNotifier (HTInternal)

@end

0 comments on commit adca35b

Please sign in to comment.