Fix memory leak by using the correct avcodec function.

Fix unitialized variable reported by valgrind.
This commit is contained in:
codestation
2015-05-27 22:42:48 -04:30
parent 613dd97561
commit 88364042f8
2 changed files with 14 additions and 11 deletions

View File

@@ -51,6 +51,9 @@ static bool setup_handlers()
{
struct sigaction hup, term;
memset(&hup, 0, sizeof(hup));
memset(&term, 0, sizeof(term));
hup.sa_handler = ClientManager::hupSignalHandler;
sigemptyset(&hup.sa_mask);
hup.sa_flags = 0;