]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
free the string for action_restart too
[chaz/openbox] / 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.019775 seconds and 4 git commands to generate.