Commit f9d35a61 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/decode_pat.c: cleanup allocated handles.

The cleanup paths forgot to cleanup the libdvbpsi handles.
parent d8b5b442
......@@ -136,7 +136,7 @@ int main(int i_argc, char* pa_argv[])
}
out:
if (p_dvbpsi == NULL)
if (p_dvbpsi)
{
dvbpsi_DetachPAT(p_dvbpsi);
dvbpsi_DeleteHandle(p_dvbpsi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment