mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
c2: fix a memory leak in unittest
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
8dcf23f290
commit
ba3093a913
1 changed files with 1 additions and 0 deletions
1
src/c2.c
1
src/c2.c
|
@ -541,6 +541,7 @@ TEST_CASE(c2_parse) {
|
|||
|
||||
cond = c2_parse(NULL, "_NET_WM_STATE = '_NET_WM_STATE_HIDDEN'", NULL);
|
||||
TEST_NOTEQUAL(cond, NULL);
|
||||
c2_list_free(&cond, NULL);
|
||||
|
||||
cond = c2_parse(NULL, "1A:\n1111111111111ar1", NULL);
|
||||
TEST_EQUAL(cond, NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue