forked from enlightenment/efl
emotion - webcam fix deletion of webcam still left in webcam list
we may destroy webcams but leave them in the list. this fixes that by removing them from our global list when we do unref to 0. @fix
This commit is contained in:
parent
c348e7779c
commit
c57b5e2d7b
|
@ -185,8 +185,13 @@ _emotion_webcam_remove_cb(void *user_data, void *func_data EINA_UNUSED)
|
|||
webcam = user_data;
|
||||
|
||||
EINA_REFCOUNT_UNREF(webcam)
|
||||
{
|
||||
if (_emotion_webcams)
|
||||
_emotion_webcams->webcams =
|
||||
eina_list_remove(_emotion_webcams->webcams, webcam);
|
||||
emotion_webcam_destroy(webcam);
|
||||
}
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_emotion_process_webcam(void *data)
|
||||
|
|
Loading…
Reference in New Issue