Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it necessary to release a NSInteger in iphone?

i am getting this error does some one knows about it??? 2009-07-08 18:42:36.778 FlashCards[1297:20b] Category Id=1 FlashCards(1297,0xa0690fa0) malloc: * error for object 0x4fd78a0: pointer being freed was not allocated FlashCards(1297,0xa0690fa0) malloc: * error for object 0x4fdc200: double free *** set a breakpoint in malloc_error_break to debug

like image 642
Rahul Vyas Avatar asked Jul 08 '09 13:07

Rahul Vyas


1 Answers

No, an NSInteger is not an object; it is simply a typedef for an int (for 32-bit apps) or a long (for 64-bit apps):

#if __LP64__
typedef long NSInteger;
#else
typedef int NSInteger;
endif
like image 184
Alex Rozanski Avatar answered Sep 22 '22 13:09

Alex Rozanski