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 <jan.vesely@rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
Jan Vesely 2018-05-04 11:43:38 -04:00
parent e4c667b9e8
commit 2f1ad72ac1
1 changed files with 1 additions and 0 deletions

View File

@ -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();