From: Frank I. <ill...@ma...> - 2005-12-10 18:57:22
|
Hi, I just checked my RubyCocoa app for memory leaks with the 'leaks' command line tool. I observed lots of leaks that seem to come from the conversion of ruby numbers to NSNumbers. The stack trace of the leak always shows the following: -[NSObject(NSKeyValueCoding) valueForKeyPath:] _NSGetUsingKeyValueGetter imp_valueForUndefinedKey _objc_msgForward -[NSObject(NSForwardInvocation) forward::] imp_forwardInvocation -[RBObject forwardInvocation:] -[RBObject rbobjForwardInvocation:] -[RBObject stuffForwardResult:to:] rbobj_to_nsobj rbobj_convert_to_nsobj rbnum_to_nsnum -[NSDecimalNumberPlaceholder initWithString:locale:] -[NSDecimalNumberPlaceholder initWithDecimal:] NSAllocateObject _internal_class_createInstanceFromZone It looks like the objects returned from rbobj_to_nsobj never get released. Is this a bug of RubyCocoa or am I doing something wrong? Cheers Frank |