]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #3188 from orestisf1993/free_ran_assignments
authorIngo Bürk <admin@airblader.de>
Mon, 19 Mar 2018 06:04:45 +0000 (07:04 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Mar 2018 06:04:45 +0000 (07:04 +0100)
Free ran_assignments

include/data.h
src/config.c

index 69a46e464331172172873a70940af6d348cb09bd..32fb098f970bb1bed29e036b9bb46550882e851e 100644 (file)
@@ -573,7 +573,7 @@ struct Assignment {
     /** the criteria to check if a window matches */
     Match match;
 
-    /** destination workspace/command, depending on the type */
+    /** destination workspace/command/output, depending on the type */
     union {
         char *command;
         char *workspace;
index 3740c2b52109572b425e0f495dbadd0054a10aa8..fd379fdea475d234a47932b5f234b9116d144c9a 100644 (file)
@@ -103,6 +103,8 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
                 FREE(assign->dest.workspace);
             else if (assign->type == A_COMMAND)
                 FREE(assign->dest.command);
+            else if (assign->type == A_TO_OUTPUT)
+                FREE(assign->dest.output);
             match_free(&(assign->match));
             TAILQ_REMOVE(&assignments, assign, assignments);
             FREE(assign);