mirror of
https://github.com/zoriya/go-mediainfo.git
synced 2026-06-04 02:56:09 +00:00
Fix memory leak
This commit is contained in:
+3
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user