Skip to content

Commit 7ade6f6

Browse files
committed
Fix memory leak with the return value of MagickImage.FormatExpression.
1 parent a43948d commit 7ade6f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Magick.NET/Native/MagickImage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ private unsafe sealed partial class NativeMagickImage : NativeInstance, INativeM
423423
public partial TypeMetric FontTypeMetrics(DrawingSettings settings, bool ignoreNewlines);
424424

425425
[Throws]
426+
[Cleanup(Name = "MagickMemory.Relinquish")]
426427
public partial string? FormatExpression(IMagickSettings<QuantumType>? settings, string expression);
427428

428429
[Throws]

0 commit comments

Comments
 (0)