[Gtk-sharp-list] GLib.Global.ProgramName shouldn't be freed

ing.antonio.macri ing.antonio.macri at gmail.com
Sun Apr 22 08:09:45 UTC 2012

I was submitting a pull request... You anticipated me. ;)

Thank you for the fix.

I also think there is the opposite problem in Pixdata.Serialize, which 
causes a memory leak: the pointer returned by gdk_pixdata_serialize 
*should* be freed.

I have attached the diff.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20120422/04b27151/attachment.html>
-------------- next part --------------
diff --git a/gdk/Pixdata.custom b/gdk/Pixdata.custom
index f87db12..2c57986 100644
--- a/gdk/Pixdata.custom
+++ b/gdk/Pixdata.custom
@@ -25,6 +25,7 @@
 		byte [] data = new byte [len];
 		Marshal.Copy (raw_ret, data, 0, (int)len);
+		GLib.Marshaller.Free(raw_ret);
 		return data;

More information about the Gtk-sharp-list mailing list