1 files changed, 8 insertions(+), 7 deletions(-)

M PiObjCObject.m
M PiObjCObject.m +8 -7
@@ 110,9 110,9 @@ void dispatch_pike_class_method(struct p
 
 - (id)retain
 {
-  LOG("PiObjCObject.retain()%s\n", "");
-  if(pobject)
-    add_ref(pobject);
+  LOG("PiObjCObject.retain(%p)\n", self);
+//  if(pobject)
+//    add_ref(pobject);
   return [super retain];
 }
 

          
@@ 132,9 132,10 @@ void dispatch_pike_class_method(struct p
 
 - (id)release
 {
-  LOG("PiObjCObject.release()%s\n", "");
-  if(pobject)
-    free_object(pobject);
+  LOG("PiObjCObject.release(%p)\n", self);
+
+//  if(pobject)
+//    free_object(pobject);
   
   [super release];
 }

          
@@ 532,7 533,7 @@ void instantiate_pike_native_class(struc
 //	pobject = Pike_sp[-1].u.object;
   add_ref(pobject);
   add_ref(prog);
-// LOG("* setting the object's instance variable: %p, %p, %p\n", obj, pobject, old_object_setInstanceVariable);
+ LOG("* setting the object's instance variable: %p, %p, %p\n", obj, pobject, old_object_setInstanceVariable);
 //	object_setInstanceVariable(obj, "pobject",  pobject);
 
 	old_object_setInstanceVariable(obj, "pobject",  pobject);