Don't release const strings in GLib.Global.

This commit is contained in:
Mike Kestner 2012-04-21 17:38:10 -05:00
parent b107fdd7c0
commit 0e0d0ec94d

View file

@ -48,7 +48,7 @@ namespace GLib {
public static string ProgramName {
get {
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
return GLib.Marshaller.Utf8PtrToString (g_get_prgname());
}
set {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);
@ -65,7 +65,7 @@ namespace GLib {
public static string ApplicationName {
get {
return GLib.Marshaller.PtrToStringGFree(g_get_application_name());
return GLib.Marshaller.Utf8PtrToString (g_get_application_name());
}
set {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);