diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-01-17 15:20:48 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-01-17 15:26:38 -0300 |
commit | e0336996ce2a593716f4f47ca5102077d397af94 (patch) | |
tree | 8b292a48e9bc8c765435514f2e3e3e8fc212fb67 /scene/2d | |
parent | f958ba5abcd7dfcde226c8780d0c3d1ce4ca336d (diff) |
Add some checks to avoid disaster when making a node the scene root. Fixes #24484
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/canvas_item.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/canvas_item.cpp b/scene/2d/canvas_item.cpp index 3aaed4fb27..6ed008cf9c 100644 --- a/scene/2d/canvas_item.cpp +++ b/scene/2d/canvas_item.cpp @@ -64,6 +64,7 @@ void CanvasItemMaterial::init_shaders() { void CanvasItemMaterial::finish_shaders() { memdelete(dirty_materials); + memdelete(shader_names); dirty_materials = NULL; #ifndef NO_THREADS |