ObjFW  Check-in [b149669549]

Overview
Comment:Fix a few missing dealloc methods.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b1496695496346a8e915825b23267b00d27cc412682021a40f97bc2c354ee4ba
User & Date: js on 2013-03-09 09:45:26
Other Links: manifest | tags
Context
2013-03-09
10:07
Save some space in the dtables. check-in: 55c399cda6 user: js tags: trunk
09:45
Fix a few missing dealloc methods. check-in: b149669549 user: js tags: trunk
09:24
Fix objc_exit() and add it to tests. check-in: 7baf58021d user: js tags: trunk
Changes

Modified src/OFXMLCDATA.m from [23c76edb90] to [6d4e644cb2].

63
64
65
66
67
68
69







70
71
72
73
74
75
76
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}








- (bool)isEqual: (id)object
{
	OFXMLCDATA *CDATA;

	if (![object isKindOfClass: [OFXMLCDATA class]])
		return false;







>
>
>
>
>
>
>







63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[_CDATA release];

	[super dealloc];
}

- (bool)isEqual: (id)object
{
	OFXMLCDATA *CDATA;

	if (![object isKindOfClass: [OFXMLCDATA class]])
		return false;

Modified src/OFXMLCharacters.m from [980de5ea74] to [046d0816e6].

63
64
65
66
67
68
69







70
71
72
73
74
75
76
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}








- (bool)isEqual: (id)object
{
	OFXMLCharacters *characters;

	if (![object isKindOfClass: [OFXMLCharacters class]])
		return false;







>
>
>
>
>
>
>







63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[_characters release];

	[super dealloc];
}

- (bool)isEqual: (id)object
{
	OFXMLCharacters *characters;

	if (![object isKindOfClass: [OFXMLCharacters class]])
		return false;

Modified src/OFXMLComment.m from [664ced47ee] to [8300178d58].

65
66
67
68
69
70
71







72
73
74
75
76
77
78
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}








- (bool)isEqual: (id)object
{
	OFXMLComment *comment;

	if (![object isKindOfClass: [OFXMLComment class]])
		return false;







>
>
>
>
>
>
>







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[_comment release];

	[super dealloc];
}

- (bool)isEqual: (id)object
{
	OFXMLComment *comment;

	if (![object isKindOfClass: [OFXMLComment class]])
		return false;

Modified src/OFXMLProcessingInstructions.m from [30df94b534] to [36610c4045].

65
66
67
68
69
70
71







72
73
74
75
76
77
78
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}








- (bool)isEqual: (id)object
{
	OFXMLProcessingInstructions *processingInstructions;

	if (![object isKindOfClass: [OFXMLProcessingInstructions class]])
		return false;







>
>
>
>
>
>
>







65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (void)dealloc
{
	[_processingInstructions release];

	[super dealloc];
}

- (bool)isEqual: (id)object
{
	OFXMLProcessingInstructions *processingInstructions;

	if (![object isKindOfClass: [OFXMLProcessingInstructions class]])
		return false;

Modified tests/plugin/TestPlugin.m from [deaa4e949a] to [ecd648908c].

20
21
22
23
24
25
26



27

28
29
30
31
32
33
34

#ifdef OF_OBJFW_RUNTIME
# import "runtime-private.h"

static void __attribute__((destructor))
unload(void)
{



	objc_free_class(objc_getClass("TestPlugin"));

}
#endif

@implementation TestPlugin
- (int)test: (int)num
{
	return num * 2;







>
>
>
|
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

#ifdef OF_OBJFW_RUNTIME
# import "runtime-private.h"

static void __attribute__((destructor))
unload(void)
{
	Class class = objc_getClass("TestPlugin");
	Class metaclass = object_getClass(class);

	objc_free_class(class);
	objc_free_class(metaclass);
}
#endif

@implementation TestPlugin
- (int)test: (int)num
{
	return num * 2;