summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-18 18:40:50 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-09-18 18:40:50 -0300
commit94970e9e41529f5e0c78d108b7c319946e31e610 (patch)
tree73b54ec57d2fe2410d734fd3e63661c147870723
parent15311693a04f19b9a782393c3475aa322f3913f2 (diff)
emixer: Fixing invalid pointer access
-rw-r--r--src/bin/playbacks_view.c5
-rw-r--r--src/bin/sinks_view.c5
-rw-r--r--src/bin/sources_view.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/src/bin/playbacks_view.c b/src/bin/playbacks_view.c
index b938454..3483f06 100644
--- a/src/bin/playbacks_view.c
+++ b/src/bin/playbacks_view.c
@@ -54,7 +54,10 @@ _sink_input_removed_cb(void *data, int type EINA_UNUSED,
54 do 54 do
55 { 55 {
56 if (ev == elm_object_item_data_get(item)) 56 if (ev == elm_object_item_data_get(item))
57 elm_object_item_del(item); 57 {
58 elm_object_item_del(item);
59 break;
60 }
58 } 61 }
59 while ((item = elm_genlist_item_next_get(item))); 62 while ((item = elm_genlist_item_next_get(item)));
60 } 63 }
diff --git a/src/bin/sinks_view.c b/src/bin/sinks_view.c
index 87cf5be..eb0c275 100644
--- a/src/bin/sinks_view.c
+++ b/src/bin/sinks_view.c
@@ -49,7 +49,10 @@ _sink_removed_cb(void *data, int type EINA_UNUSED, void *info)
49 do 49 do
50 { 50 {
51 if (ev == elm_object_item_data_get(item)) 51 if (ev == elm_object_item_data_get(item))
52 elm_object_item_del(item); 52 {
53 elm_object_item_del(item);
54 break;
55 }
53 } 56 }
54 while ((item = elm_genlist_item_next_get(item))); 57 while ((item = elm_genlist_item_next_get(item)));
55 } 58 }
diff --git a/src/bin/sources_view.c b/src/bin/sources_view.c
index 8bd883f..12b0f04 100644
--- a/src/bin/sources_view.c
+++ b/src/bin/sources_view.c
@@ -49,7 +49,10 @@ _source_removed_cb(void *data, int type EINA_UNUSED, void *info)
49 do 49 do
50 { 50 {
51 if (source == elm_object_item_data_get(item)) 51 if (source == elm_object_item_data_get(item))
52 elm_object_item_del(item); 52 {
53 elm_object_item_del(item);
54 break;
55 }
53 } 56 }
54 while ((item = elm_genlist_item_next_get(item))); 57 while ((item = elm_genlist_item_next_get(item)));
55 } 58 }