Fix memory leak

This commit is contained in:
2024-01-13 02:17:52 +01:00
parent 36f500affc
commit 07018f07ef
+3 -1
View File
@@ -46,7 +46,9 @@ const (
)
func init() {
C.setlocale(C.LC_CTYPE, C.CString(""))
str := C.CString("")
defer C.free(unsafe.Pointer(str))
C.setlocale(C.LC_CTYPE, str)
C.MediaInfoDLL_Load()
}