Skip to content

Commit 73ad895

Browse files
authored
Make destructors virtual where needed
A class with virtual methods should have virtual destructor
1 parent 021b15b commit 73ad895

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/wrappers/descriptor_set.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ namespace Anvil
262262
*
263263
* Releases the embedded image view instance.
264264
**/
265-
~ImageBindingElement();
265+
virtual ~ImageBindingElement();
266266

267267
/* Returns Vulkan descriptor type for this structure */
268268
virtual Anvil::DescriptorType get_type() const = 0;
@@ -385,7 +385,7 @@ namespace Anvil
385385
*
386386
* Releases the embedded buffer view instance.
387387
**/
388-
~TexelBufferBindingElement();
388+
virtual ~TexelBufferBindingElement();
389389

390390
/** Copy assignment operator.
391391
*
@@ -906,4 +906,4 @@ namespace Anvil
906906
};
907907
};
908908

909-
#endif /* WRAPPERS_DESCRIPTOR_SET_H */
909+
#endif /* WRAPPERS_DESCRIPTOR_SET_H */

0 commit comments

Comments
 (0)