[Bf-blender-cvs] [723db77e10a] greasepencil-object: GPencil: Fix memory leak with sliders

Antonio Vazquez noreply at git.blender.org
Tue Dec 3 17:45:32 CET 2019


Commit: 723db77e10a0e6192d7d1844745a226895de72fc
Author: Antonio Vazquez
Date:   Tue Dec 3 17:45:20 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB723db77e10a0e6192d7d1844745a226895de72fc

GPencil: Fix memory leak with sliders

===================================================================

M	source/blender/editors/animation/anim_channels_defines.c

===================================================================

diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 9c316436ba7..a3d8695d186 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -5085,6 +5085,7 @@ void ANIM_channel_draw_widgets(const bContext *C,
                           width * 3,
                           channel_height);
           }
+          MEM_freeN(gp_rna_path);
 
           /* Mask Layer. */
           UI_block_emboss_set(block, UI_EMBOSS_NONE);
@@ -5103,6 +5104,7 @@ void ANIM_channel_draw_widgets(const bContext *C,
                           width,
                           channel_height);
           }
+          MEM_freeN(gp_rna_path);
 
           /* Layer onion skinning switch. */
           prop = RNA_struct_find_property(&ptr, "use_onion_skinning");
@@ -5120,6 +5122,7 @@ void ANIM_channel_draw_widgets(const bContext *C,
                           width,
                           channel_height);
           }
+          MEM_freeN(gp_rna_path);
         }
 
         /* Only if RNA-Path found. */



More information about the Bf-blender-cvs mailing list