Skip to content

Commit fcb3b93

Browse files
committed
Fixed the generated C# for destructors of abstract classes.
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 9908c74 commit fcb3b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ private void GenerateDisposeMethods(Class @class)
20322032

20332033
var dtor = @class.Destructors.FirstOrDefault();
20342034
if (dtor != null && dtor.Access != AccessSpecifier.Private &&
2035-
@class.HasNonTrivialDestructor && !dtor.IsPure)
2035+
@class.HasNonTrivialDestructor && !@class.IsAbstract)
20362036
{
20372037
NativeLibrary library;
20382038
if (!Options.CheckSymbols ||

0 commit comments

Comments
 (0)