Fix leaks of autoreleased objects and allow building on OS X 10.6 Snow Leopard
Fix leaks of autoreleased objects and allow building on OS X 10.6 Snow Leopard

mcanthony/bgfx,fluffyfreak/bgfx,mmicko/bgfx,jpcy/bgfx,bkaradzic/bgfx,elmindreda/bgfx,marco-we/bgfx,Extrawurst/bgfx,jpcy/bgfx,emoon/bgfx,cuavas/bgfx,janstk/bgfx,jpcy/bgfx,Synxis/bgfx,aonorin/bgfx,ming4883/bgfx,septag/bgfx,marco-we/bgfx,bkaradzic/bgfx,ming4883/bgfx,darkimage/bgfx,emoon/bgfx,cyndis/bgfx,LSBOSS/bgfx,mcanthony/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,ming4883/bgfx,fluffyfreak/bgfx,kondrak/bgfx,emoon/bgfx,bkaradzic/bgfx,v3n/bgfx,septag/bgfx,MikePopoloski/bgfx,ktotheoz/bgfx,0-wiz-0/bgfx,cuavas/bgfx,Vertexwahn/bgfx,ktotheoz/bgfx,ocornut/bgfx,elmindreda/bgfx,ocornut/bgfx,marco-we/bgfx,fluffyfreak/bgfx,darkimage/bgfx,v3n/bgfx,mendsley/bgfx,LWJGL-CI/bgfx,MikePopoloski/bgfx,septag/bgfx,jdryg/bgfx,aonorin/bgfx,aonorin/bgfx,0-wiz-0/bgfx,BlueCrystalLabs/bgfx,LSBOSS/bgfx,andr3wmac/bgfx,Synxis/bgfx,cuavas/bgfx,jpcy/bgfx,BlueCrystalLabs/bgfx,LWJGL-CI/bgfx,attilaz/bgfx,mendsley/bgfx,kondrak/bgfx,Synxis/bgfx,mmicko/bgfx,Extrawurst/bgfx,0-wiz-0/bgfx,mmicko/bgfx,BlueCrystalLabs/bgfx,andr3wmac/bgfx,bkaradzic/bgfx,v3n/bgfx,janstk/bgfx,andr3wmac/bgfx,mcanthony/bgfx,jdryg/bgfx,jdryg/bgfx,elmindreda/bgfx,attilaz/bgfx,kondrak/bgfx,Vertexwahn/bgfx,darkimage/bgfx,ktotheoz/bgfx,janstk/bgfx,fluffyfreak/bgfx,cyndis/bgfx,attilaz/bgfx,ocornut/bgfx,LWJGL-CI/bgfx,Vertexwahn/bgfx,LSBOSS/bgfx,Extrawurst/bgfx,sergeScherbakov/bgfx,sergeScherbakov/bgfx,mendsley/bgfx,MikePopoloski/bgfx,cyndis/bgfx,sergeScherbakov/bgfx