From 309680f019759a8dd04100d9e0399dad19c2847a Mon Sep 17 00:00:00 2001 From: scruzin Date: Sun, 6 Jan 2019 16:13:06 +1030 Subject: [PATCH] Removed references to C.RTMP_Free(). --- rtmp/rtmp.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2be64af1..468a7299 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -149,7 +149,6 @@ func startSession(rtmp *C_RTMP, u string, timeout uint) (*C_RTMP, error) { err := C_RTMP_SetupURL(rtmp, u) if err != nil { C_RTMP_Close(rtmp) - //C.RTMP_Free(rtmp) return nil, err } @@ -158,14 +157,12 @@ func startSession(rtmp *C_RTMP, u string, timeout uint) (*C_RTMP, error) { err = C_RTMP_Connect(rtmp, nil) if err != nil { C_RTMP_Close(rtmp) - //C.RTMP_Free(rtmp) return nil, err } err = C_RTMP_ConnectStream(rtmp, 0) if err != nil { C_RTMP_Close(rtmp) - //C.RTMP_Free(rtmp) return nil, err } @@ -178,7 +175,6 @@ func endSession(rtmp *C_RTMP) uint32 { } C_RTMP_Close(rtmp) - //C.RTMP_Free(rtmp) return 0 }