Merge pull request #1840 from pkviet/certleak

obs-outputs: Fix leak with certs for rtmp
This commit is contained in:
Jim 2019-04-21 22:36:23 -07:00 committed by GitHub
commit 72b76d212a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,7 @@ extern "C"
void RTMP_Init(RTMP *r);
void RTMP_Close(RTMP *r);
RTMP *RTMP_Alloc(void);
void RTMP_TLS_Free();
void RTMP_Free(RTMP *r);
void RTMP_EnableWrite(RTMP *r);

View File

@ -92,6 +92,7 @@ static void rtmp_stream_destroy(void *data)
}
}
RTMP_TLS_Free();
free_packets(stream);
dstr_free(&stream->path);
dstr_free(&stream->key);