Adds a dealloc method for the _cursor_image variable.

Fixes one of those retaining a autoreleased object
issues.

Thanks
-- 
Andrew Ruder
--- NSCursor.m  2003-07-21 15:55:47.000000000 -0500
+++ NSCursor.m.new      2003-07-21 15:53:58.000000000 -0500
@@ -62,7 +62,7 @@
       NSCursor_class = self;
       gnustep_gui_cursor_stack = [[NSMutableArray alloc] initWithCapacity: 2];
       gnustep_gui_hidden_until_move = YES;
-      cursorDict = RETAIN([NSMutableDictionary dictionary]);
+      cursorDict = [NSMutableDictionary new]; 
       [[self arrowCursor] push];
     }
 }
@@ -248,7 +248,11 @@
     }
   return cursor;
 }
-
+- (void)dealloc
+{
+  RELEASE (_cursor_image);
+  [super dealloc];
+}
 /*
  * Defining the Cursor
  */
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to