basevideodecoder: Set the correct lists to NULL after freeing

This commit is contained in:
Sebastian Dröge 2011-07-11 09:35:25 +02:00
parent 9a2b87f196
commit 9edd003406

View file

@ -917,11 +917,11 @@ gst_base_video_decoder_clear_queues (GstBaseVideoDecoder * dec)
dec->decode = NULL;
g_list_foreach (dec->parse, (GFunc) gst_mini_object_unref, NULL);
g_list_free (dec->parse);
dec->decode = NULL;
dec->parse = NULL;
g_list_foreach (dec->parse_gather, (GFunc) gst_base_video_codec_free_frame,
NULL);
g_list_free (dec->parse_gather);
dec->decode = NULL;
dec->parse_gather = NULL;
}
static void