struct params1 *parm = object;
[parm->object performSelector: parm->selector
withObject: parm->param];
+ [parm->param release];
[parm->object freeMemory: parm];
return FALSE;
}
[parm->object performSelector: parm->selector
withObject: parm->param1
withObject: parm->param2];
+ [parm->param1 release];
+ [parm->param2 release];
[parm->object freeMemory: parm];
return FALSE;
}
struct params1 *parm = [self allocMemoryWithSize: sizeof(*parm)];
parm->object = self;
parm->selector = selector;
- parm->param = object;
+ parm->param = [object retain];
g_idle_add(callback1, parm);
}
struct params2 *parm = [self allocMemoryWithSize: sizeof(*parm)];
parm->object = self;
parm->selector = selector;
- parm->param1 = object1;
- parm->param2 = object2;
+ parm->param1 = [object1 retain];
+ parm->param2 = [object2 retain];
g_idle_add(callback2, parm);
}
@end