Fix memory leak by using the correct avcodec function.

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

No files matched your search

+3
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;