[Gtk-sharp-list] GLib.Global.ProgramName shouldn't be freed
Andres G. Aragoneses
knocte at gmail.com
Fri Apr 20 17:14:02 UTC 2012
Nice!, can you file a bug, or open a pull request to fix it?
On 04/11/2012 01:16 PM, Antonio Macrì wrote:
> As stated in GTK documentation about g_get_prgname
> The returned string belongs to GLib and must not be modified or freed.
> But the current implementation of GLib.Global.get_ProgramName is:
> return Marshaller.PtrToStringGFree(Global.g_get_prgname());
> In fact, when I try to use ProgramName, the first time it works well,
> but from the second on it contains garbage.
> The same problem seems to affect ApplicationName, although the GTK
> documentation doesn't explicitly say that it must not be freed.
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
More information about the Gtk-sharp-list