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
456419f468
commit
239ebbbc2c
|
@ -185,7 +185,12 @@ _emotion_webcam_remove_cb(void *user_data, void *func_data EINA_UNUSED)
|
|||
webcam = user_data;
|
||||
|
||||
EINA_REFCOUNT_UNREF(webcam)
|
||||
emotion_webcam_destroy(webcam);
|
||||
{
|
||||
if (_emotion_webcams)
|
||||
_emotion_webcams->webcams =
|
||||
eina_list_remove(_emotion_webcams->webcams, webcam);
|
||||
emotion_webcam_destroy(webcam);
|
||||
}
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue