free the string for action_restart too

This commit is contained in:
Dana Jansens 2003-03-26 03:36:39 +00:00
parent 2880e674ea
commit 5038e82085

View file

@ -23,7 +23,7 @@ Action *action_new(void (*func)(union ActionData *data))
void action_free(Action *a) void action_free(Action *a)
{ {
/* deal with pointers */ /* 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->data.execute.path);
g_free(a); g_free(a);