spawn: fix sequence ref count again

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-12 08:11:35 +02:00
parent 18fd559da7
commit f5591745a6
1 changed files with 1 additions and 1 deletions

View File

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