summaryrefslogtreecommitdiff
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-22 14:03:07 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-22 19:53:03 +0100
commit239ebbbc2c7c6373ab7582340979cefa1a25b685 (patch)
tree050e1f7ff5f522c25944fd44d79ccef32742642c /src/lib/emotion
parent456419f468e8bba03bc0fcfd9ef2abb2eb61e52e (diff)
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
Diffstat (limited to 'src/lib/emotion')
-rw-r--r--src/lib/emotion/emotion_webcam.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 1e1db06..d29110a 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -185,7 +185,12 @@ _emotion_webcam_remove_cb(void *user_data, void *func_data EINA_UNUSED)
185 webcam = user_data; 185 webcam = user_data;
186 186
187 EINA_REFCOUNT_UNREF(webcam) 187 EINA_REFCOUNT_UNREF(webcam)
188 emotion_webcam_destroy(webcam); 188 {
189 if (_emotion_webcams)
190 _emotion_webcams->webcams =
191 eina_list_remove(_emotion_webcams->webcams, webcam);
192 emotion_webcam_destroy(webcam);
193 }
189} 194}
190 195
191static Eina_Bool 196static Eina_Bool