From 2f1ad72ac17268989d4033e8e3f9460c68eae462 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Fri, 4 May 2018 11:43:38 -0400 Subject: [PATCH] clover: Add explicit virtual destructor to argument class It is needed to destroy the v vector in scalar_argument Fixes memory leaks on parameter set/bind. v2: Drop redundant sclara_argument destructor Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/core/kernel.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/clover/core/kernel.hpp b/src/gallium/state_trackers/clover/core/kernel.hpp index 4ba6ff4..5d46854 100644 --- a/src/gallium/state_trackers/clover/core/kernel.hpp +++ b/src/gallium/state_trackers/clover/core/kernel.hpp @@ -93,6 +93,7 @@ namespace clover { /// Free any resources that were allocated in bind(). virtual void unbind(exec_context &ctx) = 0; + virtual ~argument() {}; protected: argument(); -- 2.7.4