Commit 2fde438f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix potential infinite loop with multiple vouts (fixes: #2832)

parent 47c08526
......@@ -170,7 +170,7 @@ static void Close (vlc_object_t *obj)
}
do
used[n] = used[n + 1];
while (used[n + 1] != NULL);
while (used[++n] != NULL);
if (n == 0)
/* should not be needed (var_Destroy...) but better safe than sorry: */
......
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