raster pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=c57b5e2d7bbdd4b444a19cd833a416cec3ba15e8

commit c57b5e2d7bbdd4b444a19cd833a416cec3ba15e8
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Aug 22 14:03:07 2019 +0100

    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
---
 src/lib/emotion/emotion_webcam.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 1e1db06d97..d29110aa23 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)
    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

-- 


Reply via email to