1
0
Fork 0
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:
Raymond Li 2021-05-30 15:21:03 -04:00 committed by GitHub
commit c22f736c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}