]> git.sur5r.net Git - i3/i3/commit - src/main.c
Remove autostart commands after they have been executed. 2055/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Mon, 2 Nov 2015 14:21:43 +0000 (09:21 -0500)
committerIngo Bürk <ingo.buerk@tngtech.com>
Mon, 2 Nov 2015 14:21:43 +0000 (09:21 -0500)
commitf2209a873c47d651c2e87b4ee4ebf203e99fa6ab
tree16b1f7427b35f8067b811c4267cc5378a2c48cd0
parentbb7a36e0c7c8534a008bc569af4e1708c4865fe1
Remove autostart commands after they have been executed.

As there is no need to keep autostart commands in memory, we can safely
remove them as soon as they have been executed. As we previously didn't
clear them at all during config reloads, this also fixes a memory leak.

Note that neither autostarts nor autostarts_always is executed during
config reloads, so removing them from memory is fine as an i3 restart
will cause them to be parsed again.

fixes #2044
src/main.c