And cover the one in scene_destroy

This commit is contained in:
jp9000 2014-01-30 12:41:11 -07:00
parent 7b37dc6cbb
commit 73d4e1331c

View file

@ -62,10 +62,12 @@ fail:
static void scene_destroy(void *data)
{
struct obs_scene *scene = data;
struct obs_scene_item *item = scene->first_item;
struct obs_scene_item *item;
pthread_mutex_lock(&scene->mutex);
item = scene->first_item;
while (item) {
struct obs_scene_item *del_item = item;
item = item->next;