mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 14:25:38 +00:00
Don't release const strings in GLib.Global.
This commit is contained in:
parent
b107fdd7c0
commit
0e0d0ec94d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue