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
This commit is contained in:
Marcel Hollerbach 2017-02-18 17:29:09 +01:00
parent 09091bb133
commit bcea889340
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}