collecting ofxSpriteSheetRender[s]

Hey there,

Platform is Xcode running Mountain Lion.

Working on my first openFrameworks project and I am using the ofxSpriteSheetRenderer ( for a bunch of Sprites I am rendering. There is not really a problem I am running into per se but I am trying to create some container that holds all my Sprites.

However, when I use the std::vector it throws the following error:
myFancyProject(804,0x3ec75d98) malloc: *** error for object 0x9245000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
(lldb) [/pre]

Any help or insight is appreciated.

you will probably need to post some more code in order to help correctly diagnose it. the error generally means that at a pointer (usually declared as a property of the class) was deleted before anything ever created it (usually via “new”).

Quick rule of thumb I use is that if I have a pointer declared in my .h file

 ofxSpriteSheetRender* renderer;  

set that variable to NULL as soon as possible

void testApp::setup()  
  renderer = NULL;