Skip to content

Commit

Permalink
compositor-xrender: Fix memory leak
Browse files Browse the repository at this point in the history
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 Mar 5, 2019
1 parent 9110030 commit fc162df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compositor/compositor-xrender.c
Expand Up @@ -584,6 +584,8 @@ make_shadow (MetaDisplay *display,
}
}

ximage->data = (char *) data;

return ximage;
}

Expand Down

0 comments on commit fc162df

Please sign in to comment.