Don't release const strings in GLib.Global.
This commit is contained in:
parent
b107fdd7c0
commit
0e0d0ec94d
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ namespace GLib {
|
||||||
|
|
||||||
public static string ProgramName {
|
public static string ProgramName {
|
||||||
get {
|
get {
|
||||||
return GLib.Marshaller.PtrToStringGFree(g_get_prgname());
|
return GLib.Marshaller.Utf8PtrToString (g_get_prgname());
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);
|
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);
|
||||||
|
@ -65,7 +65,7 @@ namespace GLib {
|
||||||
|
|
||||||
public static string ApplicationName {
|
public static string ApplicationName {
|
||||||
get {
|
get {
|
||||||
return GLib.Marshaller.PtrToStringGFree(g_get_application_name());
|
return GLib.Marshaller.Utf8PtrToString (g_get_application_name());
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);
|
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue