Skip to content

Commit fc162df

Browse files
committed
compositor-xrender: Fix memory leak
Fixes Clang static analyzer warning: compositor/compositor-xrender.c:587:10: warning: Potential leak of memory pointed to by 'data' return ximage; ^~~~~~
1 parent 9110030 commit fc162df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compositor/compositor-xrender.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ make_shadow (MetaDisplay *display,
584584
}
585585
}
586586

587+
ximage->data = (char *) data;
588+
587589
return ximage;
588590
}
589591

0 commit comments

Comments
 (0)