summaryrefslogtreecommitdiff
path: root/MLKThrowException.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-06-13 23:20:02 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-06-13 23:20:02 +0200
commit206e9d65a486e7f01e9fe32b2ef66bc4b0c22798 (patch)
tree23953d2aaf3d46e9ec41984efeaa4c560c672100 /MLKThrowException.m
parent97ad5ac29b2ca40c5ec27f9057b28f8c9cb2b566 (diff)
Override -dealloc in every class.
Diffstat (limited to 'MLKThrowException.m')
-rw-r--r--MLKThrowException.m11
1 files changed, 9 insertions, 2 deletions
diff --git a/MLKThrowException.m b/MLKThrowException.m
index 799db7e..e3f3e0c 100644
--- a/MLKThrowException.m
+++ b/MLKThrowException.m
@@ -8,8 +8,8 @@
-(MLKThrowException *) initWithCatchTag:(MLKSymbol *)catchTag
value:(id)value
{
- _catchTag = catchTag;
- _value = value;
+ ASSIGN (_catchTag, catchTag);
+ ASSIGN (_value, value);
return self;
}
@@ -22,4 +22,11 @@
{
return _value;
}
+
+-(void) dealloc
+{
+ RELEASE (_catchTag);
+ RELEASE (_value);
+ [super dealloc];
+}
@end