joshuajnoble / ofxKinectCommonBridge

A wrapper for the simple Kinect for Windows library developed at Microsoft in partnership with myself & James George
Other
89 stars 36 forks source link

Crash on shutdown. Uninitialized pointers leading to spurious operations. #9

Open Craniac opened 10 years ago

Craniac commented 10 years ago

ofxKinectCommonBridge::stop() checks mapper against NULL before dereferencing it, but (at least for a debug build), the value was not initialized, with the system setting it to 0xcdcdcdcd or somesuch, instead of NULL. Probably should be initialized in the constructor, along with nuiSensor and irPixelByteArray.