summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2018-05-04 11:43:38 -0400
committerJan Vesely <[email protected]>2018-05-05 13:17:08 -0400
commit2f1ad72ac17268989d4033e8e3f9460c68eae462 (patch)
tree0a9407e4323402eea7de11eb5c91344ce1190a3d
parente4c667b9e84c88f9031769fe11c32155652825e6 (diff)
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 <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.hpp b/src/gallium/state_trackers/clover/core/kernel.hpp
index 4ba6ff467b7..5d46854d679 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();