gstinfo: fix infinite loop in gst_debug_unset_threshold_for_name()
[platform/upstream/gstreamer.git] / gst / gstinfo.c
index f210233..643ce88 100644 (file)
@@ -1526,6 +1526,8 @@ gst_debug_unset_threshold_for_name (const gchar * name)
       g_slice_free (LevelNameEntry, entry);
       g_slist_free_1 (walk);
       walk = __level_name;
+    } else {
+      walk = g_slist_next (walk);
     }
   }
   g_mutex_unlock (&__level_name_mutex);