summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 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)
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