Skip to content

Eto.HtmlRenderer memory leak on Linux GTK 3 #39

@LaineZ

Description

@LaineZ

Setting Text property in HtmlRender component causes a memory leak and log message

Cairo.Surface is leaking, programmer is missing a call to Dispose
Allocated from:
   at System.Environment.get_StackTrace()
   at Cairo.CairoDebug.OnAllocated(IntPtr obj)
   at Cairo.Surface..ctor(IntPtr handle, Boolean owner)
   at Cairo.ImageSurface..ctor(Format format, Int32 width, Int32 height)
   at Eto.GtkSharp.Drawing.GraphicsHandler.CreateFromImage(Bitmap image)
   at Eto.Drawing.Graphics..ctor(Bitmap image)
   at TheArtOfDev.HtmlRenderer.Eto.Utilities.Utils.CreateGraphics()
   at TheArtOfDev.HtmlRenderer.Eto.HtmlPanel.PerformLayout()
   at TheArtOfDev.HtmlRenderer.Eto.HtmlPanel.set_Text(String value)
   at IRCCl.Core.MessageView..ctor() in /home/fulstop/projects/IRCCl/Core/MessageView.cs:line 23
   at IRCCl.Core.IRC..cctor() in /home/fulstop/projects/IRCCl/Core/IRC.cs:line 16
   at IRCCl.Windows.MainWindow..ctor() in /home/fulstop/projects/IRCCl/Windows/MainWindow.cs:line 37
   at Program.Main() in /home/fulstop/projects/IRCCl/Program.cs:line 10

OS: Void linux amd64

Eto.HtmlRenderer 0.3.0

Eto.Forms 2.5.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions