Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-08-07 23:22:03 +0300
committerAntonioya <blendergit@gmail.com>2018-08-07 23:22:03 +0300
commitd2f709b1792ba017ba29b7228a706a7bb05622a1 (patch)
tree1fb06f45330a182eb7b8b9dd470c2ae86fd7a392 /source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
parent3884b86927747a2662d0852d6d57c043c37d8cb4 (diff)
Fix memory leak in previous commit
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
index 8e2e97abf84..89d48492e46 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciltint.c
@@ -35,8 +35,6 @@
#include "DNA_gpencil_types.h"
#include "DNA_gpencil_modifier_types.h"
-#include "MEM_guardedalloc.h"
-
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math_vector.h"
@@ -50,6 +48,7 @@
#include "BKE_main.h"
#include "DEG_depsgraph.h"
+#include "DEG_depsgraph.h"
#include "MOD_gpencil_util.h"
#include "MOD_gpencil_modifiertypes.h"
@@ -138,7 +137,6 @@ static void bakeModifier(
if (newmat == NULL) {
BKE_object_material_slot_add(bmain, ob);
newmat = BKE_material_copy(bmain, mat);
- newmat->gp_style = MEM_dupallocN(mat->gp_style);
newmat->preview = NULL;
assign_material(bmain, ob, newmat, ob->totcol, BKE_MAT_ASSIGN_USERPREF);