mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Inherit from NSObject, not Object.
Don't free connection object, release it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
88ead3337f
commit
6e58fa0b83
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
id p;
|
||||
id callback_receiver = [Object new];
|
||||
id callback_receiver = [NSObject new];
|
||||
id o;
|
||||
id localObj;
|
||||
unsigned long i = 4;
|
||||
|
@ -95,7 +95,7 @@ int main(int argc, char *argv[])
|
|||
[p sendCharPtrPtr:&string];
|
||||
/* testing "-perform:" */
|
||||
if (p != [p perform:sel_get_any_uid("self")])
|
||||
[Object error:"trying perform:"];
|
||||
[NSObject error:"trying perform:"];
|
||||
/* testing "bycopy" */
|
||||
/* reverse the order on these next two and it doesn't crash,
|
||||
however, having manyArgs called always seems to crash.
|
||||
|
@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
|||
printf(">>returned float %f\n", [p returnFloat]);
|
||||
printf(">>returned double %f\n", [p returnDouble]);
|
||||
|
||||
localObj = [[Object alloc] init];
|
||||
localObj = [[NSObject alloc] init];
|
||||
[p addObject:localObj];
|
||||
k = [p count];
|
||||
for (j = 0; j < k; j++)
|
||||
|
@ -124,7 +124,7 @@ int main(int argc, char *argv[])
|
|||
j, (unsigned)[remote_peer_obj hash]);
|
||||
}
|
||||
[c runConnectionWithTimeout:1500];
|
||||
[c dealloc];
|
||||
[c release];
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue