bjornblissing / osgoculusviewer

An OsgViewer with support for the Oculus Rift
Other
106 stars 67 forks source link

Fix for memory leak of index array used to create distortion mesh. #45

Closed ChrisDenham closed 9 years ago

ChrisDenham commented 9 years ago

I think the index array used to create the distortion mesh must be copied rather than referenced, so this change just uses osg::ref_ptr to make sure it is released.

bjornblissing commented 9 years ago

Good catch!