Using C.uiFreeText instead of freestr
This commit is contained in:
parent
b2f408abfc
commit
a8bcf1a4fa
|
@ -17,14 +17,14 @@ func MsgBoxError(w *Window, title string, description string) {
|
||||||
func OpenFile(w *Window) string {
|
func OpenFile(w *Window) string {
|
||||||
cname := C.uiOpenFile(w.w)
|
cname := C.uiOpenFile(w.w)
|
||||||
name := C.GoString(cname)
|
name := C.GoString(cname)
|
||||||
freestr(cname)
|
C.uiFreeText(cname)
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
func SaveFile(w *Window) string {
|
func SaveFile(w *Window) string {
|
||||||
cname := C.uiSaveFile(w.w)
|
cname := C.uiSaveFile(w.w)
|
||||||
name := C.GoString(cname)
|
name := C.GoString(cname)
|
||||||
freestr(cname)
|
C.uiFreeText(cname)
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue