mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-17 15:55:52 -05:00
Merge pull request #220 from Rio6/fix-use-after-free
Don't free jpg_data
This commit is contained in:
commit
c22f736c58
1 changed files with 0 additions and 1 deletions
1
i3lock.c
1
i3lock.c
|
@ -1357,7 +1357,6 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue