Page 1 of 1

Missing unregisterCompositorLogic

Posted: Sat Feb 05, 2011 6:33 pm
by dark_sylinc
I just noticed CompositorManager::registerCompositorLogic() doesn't have it's corresponding unregisterCompositorLogic()

I saw Deferred Shading demo which is the only one who uses it and there's clearly a memory leak.
There is no smart ptr so it isn't tracked through ref. counting.

I don't think smart ptrs should be used though, since listeners may derive from user-created classes that may be completely independent from Ogre (except from the bit they derive from Ogre::CompositorLogic)

If anyone doesn't object, I'm going add the corresponding unregister() very soon

Re: Missing unregisterCompositorLogic

Posted: Thu Feb 10, 2011 3:20 pm
by dark_sylinc
Fix checked in.

I've noticed there's also no CompositorManager::unregisterCustomCompositionPass() but I haven't dealt with it yet