From 0e0d0ec94dd6ad6ed5922de545c02f7537e02092 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Sat, 21 Apr 2012 17:38:10 -0500 Subject: [PATCH] Don't release const strings in GLib.Global. --- glib/Global.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/Global.cs b/glib/Global.cs index 0476c85f6..3dae617bd 100644 --- a/glib/Global.cs +++ b/glib/Global.cs @@ -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);