diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-11-01 18:57:59 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-11-01 18:57:59 +0800 |
commit | 10818cfc102d9c0ac0e28b25a3997e6b6d93c2fd (patch) | |
tree | 12de7000e7533211a0707d2798de559235ed4480 /drivers/gles3/rasterizer_storage_gles3.cpp | |
parent | efbbd14af3f3325c4201518528e7acb93d60098a (diff) |
Fix memory leak when using CurveTexture.set_texture_mode
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 1feb2c224e..8a070313f8 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -625,6 +625,8 @@ void RasterizerStorageGLES3::texture_replace(RID p_texture, RID p_by_texture) { for (int n = 0; n < tex_from->images.size(); n++) { texture_set_data(p_texture, tex_from->images[n], n); } + + free(p_by_texture); } bool RasterizerStorageGLES3::_is_main_thread() { |