We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f79a92 commit 17cbb4cCopy full SHA for 17cbb4c
Common/interface/RefCountedObjectImpl.hpp
@@ -43,6 +43,7 @@ namespace Diligent
43
{
44
45
// This class controls the lifetime of a refcounted object
46
+// NB: RefCountersImpl can't be final, see https://github.com/DiligentGraphics/DiligentCore/issues/704.
47
class RefCountersImpl : public IReferenceCounters
48
49
public:
@@ -448,6 +449,8 @@ class RefCountersImpl : public IReferenceCounters
448
449
}
450
451
452
+ // Make the method virtual to ensure that the object is destroyed in the same module
453
+ // where it was created, see https://github.com/DiligentGraphics/DiligentCore/issues/704.
454
virtual void SelfDestroy()
455
456
delete this;
0 commit comments