Free the underlying GPid resource upon deletion
This commit is contained in:
parent
6c64ab3006
commit
f07f598ff8
|
@ -231,6 +231,8 @@ static GtkWidget * _new_entry(Config * config)
|
||||||
/* run_delete */
|
/* run_delete */
|
||||||
static void _run_delete(Run * run)
|
static void _run_delete(Run * run)
|
||||||
{
|
{
|
||||||
|
if(run->pid >= 0)
|
||||||
|
g_spawn_close_pid(run->pid);
|
||||||
if(run->config != NULL)
|
if(run->config != NULL)
|
||||||
config_delete(run->config);
|
config_delete(run->config);
|
||||||
object_delete(run);
|
object_delete(run);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user