Commit 4adb388a authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/dvbpsi.c: dvbpsi_DeleteDecoder() add assert

Assert if p_decoder->p_current_section is not NULL.
parent e238d942
...@@ -193,6 +193,7 @@ void dvbpsi_DeleteDecoder(dvbpsi_t *handle) ...@@ -193,6 +193,7 @@ void dvbpsi_DeleteDecoder(dvbpsi_t *handle)
dvbpsi_decoder_t *p_decoder = (dvbpsi_decoder_t *) handle->p_private; dvbpsi_decoder_t *p_decoder = (dvbpsi_decoder_t *) handle->p_private;
handle->p_private = NULL; handle->p_private = NULL;
assert(p_decoder->p_current_section == NULL);
free(p_decoder); free(p_decoder);
} }
......
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