mirror of https://github.com/yshui/picom.git
new backends: xrender: fix memory leak
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
7ca843eeeb
commit
66cf3937e2
|
@ -262,6 +262,7 @@ static void release_image(backend_t *base, void *image) {
|
||||||
if (img->owned) {
|
if (img->owned) {
|
||||||
xcb_free_pixmap(base->c, img->pixmap);
|
xcb_free_pixmap(base->c, img->pixmap);
|
||||||
}
|
}
|
||||||
|
free(img);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void deinit(backend_t *backend_data) {
|
static void deinit(backend_t *backend_data) {
|
||||||
|
|
|
@ -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) {
|
static void exit_enable(EV_P_ ev_signal *w, int revents) {
|
||||||
session_t *ps = session_ptr(w, int_signal);
|
session_t *ps = session_ptr(w, int_signal);
|
||||||
log_info("compton is quitting...");
|
log_info("compton is quitting...");
|
||||||
ps->quit = true;
|
quit_compton(ps);
|
||||||
ev_break(ps->loop, EVBREAK_ALL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue