mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
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>
(cherry picked from commit 2f1ad72ac1)
This commit is contained in:
parent
23cd0c1598
commit
54c208e48e
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue