From bcea8893403644a016ba04ce3d7c96da60138a09 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sat, 18 Feb 2017 17:29:09 +0100 Subject: [PATCH] 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 --- src/modules/luncher/bar.c | 4 ++++ 1 file changed, 4 insertions(+) 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) if (!eina_list_data_find(ic->execs, ex)) ic->execs = eina_list_append(ic->execs, ex); break; + case E_EXEC_WATCH_TIMEOUT: + case E_EXEC_WATCH_STOPPED: + ic->exec = NULL; + break; default: break; }