mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
ulpfecenc: slightly safer dispose impl
Technically dispose can be called more than once (even if gstelement is not actually set up to do that) so need to protect against that. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1761>
This commit is contained in:
parent
629b427a13
commit
b0f72ed788
1 changed files with 3 additions and 1 deletions
|
@ -753,7 +753,9 @@ gst_rtp_ulpfec_enc_dispose (GObject * obj)
|
|||
{
|
||||
GstRtpUlpFecEnc *fec = GST_RTP_ULPFEC_ENC (obj);
|
||||
|
||||
g_hash_table_destroy (fec->ssrc_to_ctx);
|
||||
if (fec->ssrc_to_ctx)
|
||||
g_hash_table_destroy (fec->ssrc_to_ctx);
|
||||
fec->ssrc_to_ctx = NULL;
|
||||
|
||||
G_OBJECT_CLASS (gst_rtp_ulpfec_enc_parent_class)->dispose (obj);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue