]> Dogcows Code - chaz/openbox/commitdiff
free the string for action_restart too
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 03:36:39 +0000 (03:36 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 03:36:39 +0000 (03:36 +0000)
openbox/action.c

index ef588910479b6b4bd4cc17efce3f5000cac2ffcf..e6f6a9320acc069672e57b5e1971f812653f0cc8 100644 (file)
@@ -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);
This page took 0.028791 seconds and 4 git commands to generate.