From c4456876eecf167e515cbdd1e8ac6405905f87e4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 22 Mar 2014 16:18:12 +0100 Subject: [PATCH] Fix a tiny leak (that would cause an assertion failure on exit). --- resource_pool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/resource_pool.cpp b/resource_pool.cpp index a83add2..a32247d 100644 --- a/resource_pool.cpp +++ b/resource_pool.cpp @@ -256,6 +256,7 @@ void ResourcePool::release_2d_texture(GLuint texture_num) map::const_iterator format_it = fbo_formats.find(fbo_num); assert(format_it != fbo_formats.end()); if (format_it->second.texture_num == free_texture_num) { + fbo_formats.erase(fbo_num); glDeleteFramebuffers(1, &fbo_num); fbo_freelist.erase(fbo_freelist_it++); } else { -- 2.39.2