Skip to content
Permalink
Browse files

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);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • Loading branch information...
sc0w committed Feb 26, 2019
1 parent 76a5cff commit 230f96cbd29d45c970e3c107e99d468396e91c90
Showing with 1 addition and 2 deletions.
  1. +1 −2 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)

0 comments on commit 230f96c

Please sign in to comment.
You can’t perform that action at this time.