diff options
author | Pablo Barciela <[email protected]> | 2019-02-26 18:03:25 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-06 12:03:16 +0100 |
commit | 230f96cbd29d45c970e3c107e99d468396e91c90 (patch) | |
tree | de98bcded993c64aa2c4d9a05dbfacc11e3883c6 /src/core | |
parent | 76a5cffd6f7e2cefc91c3e6e7e88eb156524a263 (diff) | |
download | marco-230f96cbd29d45c970e3c107e99d468396e91c90.tar.bz2 marco-230f96cbd29d45c970e3c107e99d468396e91c90.tar.xz |
screen: Fix use of memory after it is freed
Fixes Clang static analyzer warning:
core/screen.c:754:16: warning: Use of memory after it is freed
result = g_list_prepend (result, info);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/screen.c b/src/core/screen.c index c03530c2..e0e4e506 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -749,9 +749,8 @@ list_windows (MetaScreen *screen) else { info->xwindow = children[i]; + result = g_list_prepend (result, info); } - - result = g_list_prepend (result, info); } if (children) |