]> git.sur5r.net Git - i3/i3/commit
Free ran_assignments 3188/head
authorOrestis Floros <orestisf1993@gmail.com>
Mon, 19 Mar 2018 01:00:35 +0000 (03:00 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Mon, 19 Mar 2018 01:00:35 +0000 (03:00 +0200)
commit98df2e21fa6eadae10a7919077f76c28dec7e3e1
treeb92c8daf0eac8baa2aaa8668973aa3dbb4a6efb3
parente3e09119bf994ea3f5222441832952a8dd352941
Free ran_assignments

When we run 'reload' all the assignments are freed:
https://github.com/i3/i3/blob/e3e09119bf994ea3f5222441832952a8dd352941/src/config.c#L99-L109

Assignments are saved to each window after they are executed:
https://github.com/i3/i3/blob/e3e09119bf994ea3f5222441832952a8dd352941/src/assignments.c#L41-L46

This means that the pointers stored in window->ran_assignments are
invalid (shouldn't be dangerous currently but could lead to a segfault
if the code is modified) after a 'reload'.
src/config.c