Skip to content
Permalink
Browse files

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;
         ^~~~~~
  • Loading branch information...
sc0w committed Feb 25, 2019
1 parent 9110030 commit fc162dfcb10cd3d3c74e160e0fad14cdd1257c61
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/compositor/compositor-xrender.c
@@ -584,6 +584,8 @@ make_shadow (MetaDisplay *display,
}
}

ximage->data = (char *) data;

return ximage;
}

0 comments on commit fc162df

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