{"push_id":896974862,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"247291a39140527046a429de2d6adb6af095a8ff","before":"6c3a7766780a8927a3711c3357b23de3694f573a","commits":[{"sha":"247291a39140527046a429de2d6adb6af095a8ff","author":{"email":"66d9b5392f261c27c67ad84d213eced52a07efd8@gmail.com","name":"takenu"},"message":"Fix map bug in RenderManager, free Drawable pointers\n\nTwo bugs are fixed in this commit that have gone unnoticed for quite a\nwhile.\n\nFirstly, the Drawable did not properly free its memory before resetting\nits texture, causing memory leakage. It also didn't check if a rendered\nmesh actually exists before freeing, and it didn't delete its texture.\n\nSecondly, the RenderManager did not clear a freed Drawable pointer from\nits key map, such that freeing the same pointer twice would fail because\nthe attempt to re-add the same key to the std::map did not work. Worse,\nif the Drawable and its textures had been deleted, Strata would crash\nbecause the renderer tried to use textures that were no longer there.\n\nBoth of these issues should now be fixed, and transgressions\n(initializing a DrawableMesh twice, or adding a Drawable to the\nRenderManager that already exists in its mapping) should result in\nwarnings being printed.","distinct":true,"url":"https://api.github.com/repos/takenu/strata/commits/247291a39140527046a429de2d6adb6af095a8ff"}]}