new backends: xrender: fix memory leak

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-04-20 05:33:13 +01:00
parent 7ca843eeeb
commit 66cf3937e2
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
2 changed files with 2 additions and 2 deletions

View File

@ -262,6 +262,7 @@ static void release_image(backend_t *base, void *image) {
if (img->owned) {
xcb_free_pixmap(base->c, img->pixmap);
}
free(img);
}
static void deinit(backend_t *backend_data) {

View File

@ -1577,8 +1577,7 @@ static void reset_enable(EV_P_ ev_signal *w, int revents) {
static void exit_enable(EV_P_ ev_signal *w, int revents) {
session_t *ps = session_ptr(w, int_signal);
log_info("compton is quitting...");
ps->quit = true;
ev_break(ps->loop, EVBREAK_ALL);
quit_compton(ps);
}
/**