MT#60258 prevent possible null dereference

Change-Id: I8e661067d83c3a292f2ec43cd7fd129d8e3f01a7
(cherry picked from commit bee6275cf9)
(cherry picked from commit 564617e0e3)
mr12.4.1
Richard Fuchs 2 years ago
parent b192407a8a
commit 7cd69dfdcf

@ -61,6 +61,8 @@ static void meta_destroy(metafile_t *mf) {
// close all streams
for (int i = 0; i < mf->streams->len; i++) {
stream_t *stream = g_ptr_array_index(mf->streams, i);
if (!stream)
continue;
pthread_mutex_lock(&stream->lock);
stream_close(stream);
pthread_mutex_unlock(&stream->lock);

Loading…
Cancel
Save