diff --git a/src/backend/xrender/xrender.c b/src/backend/xrender/xrender.c index d1fe2f8..b6e2ba8 100644 --- a/src/backend/xrender/xrender.c +++ b/src/backend/xrender/xrender.c @@ -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) { diff --git a/src/compton.c b/src/compton.c index 6102494..eaee459 100644 --- a/src/compton.c +++ b/src/compton.c @@ -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); } /**