spawn: fix sequence ref count again
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
18fd559da7
commit
f5591745a6
2
spawn.c
2
spawn.c
|
@ -59,6 +59,7 @@ spawn_sequence_remove(SnStartupSequence *s)
|
||||||
if(sn_waits.tab[i] == s)
|
if(sn_waits.tab[i] == s)
|
||||||
{
|
{
|
||||||
SnStartupSequence_array_take(&sn_waits, i);
|
SnStartupSequence_array_take(&sn_waits, i);
|
||||||
|
sn_startup_sequence_unref(s);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -171,7 +172,6 @@ spawn_monitor_event(SnMonitorEvent *event, void *data)
|
||||||
case SN_MONITOR_EVENT_COMPLETED:
|
case SN_MONITOR_EVENT_COMPLETED:
|
||||||
case SN_MONITOR_EVENT_CANCELED:
|
case SN_MONITOR_EVENT_CANCELED:
|
||||||
spawn_sequence_remove(sequence);
|
spawn_sequence_remove(sequence);
|
||||||
sn_startup_sequence_unref(sequence);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue