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:
authorCampbell Barton <ideasman42@gmail.com>2020-04-07 15:09:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-04-07 15:09:37 +0300
commit5892622d684cf23ac0eaadcb9f501699255ceec7 (patch)
treee78d69ae27e6650b88767d891d2a61f284f853ef /source/blender/gpu
parentee43cf572247d3ac158da8e284e0afeb78437a7f (diff)
Revert "Fix memory leak in recent panel drag widget cache"
This reverts commit 58e20b432a2bd7fbff7ebb7aa1f49a6662dc6e7c. Was calling discard twice, tsk. Although for some reason it did quiet the leak. Reverting because this is causing a crash.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_batch_presets.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_batch_presets.c b/source/blender/gpu/intern/gpu_batch_presets.c
index 9a282e95664..34bd921992c 100644
--- a/source/blender/gpu/intern/gpu_batch_presets.c
+++ b/source/blender/gpu/intern/gpu_batch_presets.c
@@ -309,7 +309,6 @@ GPUBatch *GPU_batch_preset_panel_drag_widget(const float pixelsize,
!equals_v4v4(g_presets_2d.panel_drag_widget_col_dark, col_dark);
if (g_presets_2d.batch.panel_drag_widget && parameters_changed) {
- GPU_batch_discard(g_presets_2d.batch.panel_drag_widget);
gpu_batch_presets_unregister(g_presets_2d.batch.panel_drag_widget);
GPU_batch_discard(g_presets_2d.batch.panel_drag_widget);
g_presets_2d.batch.panel_drag_widget = NULL;