free the string for action_restart too
This commit is contained in:
parent
2880e674ea
commit
5038e82085
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ Action *action_new(void (*func)(union ActionData *data))
|
|||
void action_free(Action *a)
|
||||
{
|
||||
/* deal with pointers */
|
||||
if (a->func == action_execute)
|
||||
if (a->func == action_execute || a->func == action_restart)
|
||||
g_free(a->data.execute.path);
|
||||
|
||||
g_free(a);
|
||||
|
|
Loading…
Reference in a new issue