mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2024-12-02 14:05:43 -05:00
fix blurred background position and memorylerak warning
This commit is contained in:
parent
cdf33e60fd
commit
c50a1a27ef
1 changed files with 2 additions and 0 deletions
2
i3lock.c
2
i3lock.c
|
@ -1357,6 +1357,7 @@ static cairo_surface_t* load_image(char* image_path, char* image_raw_format) {
|
|||
img = cairo_image_surface_create_for_data(jpg_data,
|
||||
CAIRO_FORMAT_ARGB32, jpg_info.width, jpg_info.height,
|
||||
jpg_info.stride);
|
||||
free(jpg_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2384,6 +2385,7 @@ int main(int argc, char *argv[]) {
|
|||
cairo_surface_destroy(xcb_img);
|
||||
|
||||
img = blur_img;
|
||||
bg_type = NONE;
|
||||
}
|
||||
|
||||
xcb_window_t stolen_focus = find_focused_window(conn, screen->root);
|
||||
|
|
Loading…
Reference in a new issue