summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-11-01 18:57:59 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-11-01 18:57:59 +0800
commit10818cfc102d9c0ac0e28b25a3997e6b6d93c2fd (patch)
tree12de7000e7533211a0707d2798de559235ed4480 /servers
parentefbbd14af3f3325c4201518528e7acb93d60098a (diff)
Fix memory leak when using CurveTexture.set_texture_mode
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/rasterizer_dummy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rasterizer_dummy.h b/servers/rendering/rasterizer_dummy.h
index f4a44c30f9..44e07a1853 100644
--- a/servers/rendering/rasterizer_dummy.h
+++ b/servers/rendering/rasterizer_dummy.h
@@ -258,7 +258,7 @@ public:
Ref<Image> texture_2d_layer_get(RID p_texture, int p_layer) const override { return Ref<Image>(); }
Vector<Ref<Image>> texture_3d_get(RID p_texture) const override { return Vector<Ref<Image>>(); }
- void texture_replace(RID p_texture, RID p_by_texture) override {}
+ void texture_replace(RID p_texture, RID p_by_texture) override { free(p_by_texture); }
void texture_set_size_override(RID p_texture, int p_width, int p_height) override {}
void texture_set_path(RID p_texture, const String &p_path) override {}