summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-18 17:29:09 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-18 17:31:29 +0100
commitbcea8893403644a016ba04ce3d7c96da60138a09 (patch)
treefe7eecf77258974c69f41cdcd8a33798d6900155
parent09091bb133456bcf32e74ce17d6b44fe8eea6bd6 (diff)
luncher: null out the watchter when the watcher is stopped
before a exec instance is freed all the watchers are stopped, so we should NULL the watcher out here. fixes T4963
-rw-r--r--src/modules/luncher/bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c
index 6e5c9d163..d5d9fa18e 100644
--- a/src/modules/luncher/bar.c
+++ b/src/modules/luncher/bar.c
@@ -247,6 +247,10 @@ _bar_instance_watch(void *data, E_Exec_Instance *ex, E_Exec_Watch_Type type)
247 if (!eina_list_data_find(ic->execs, ex)) 247 if (!eina_list_data_find(ic->execs, ex))
248 ic->execs = eina_list_append(ic->execs, ex); 248 ic->execs = eina_list_append(ic->execs, ex);
249 break; 249 break;
250 case E_EXEC_WATCH_TIMEOUT:
251 case E_EXEC_WATCH_STOPPED:
252 ic->exec = NULL;
253 break;
250 default: 254 default:
251 break; 255 break;
252 } 256 }