i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit c22f736c583d4579d0072407ed9a7a9807e8cb89
parent d0644a31ce8215a0b6411f25bac8827bf34c42a0
Author: Raymond Li <hi@raymond.li>
Date:   Sun, 30 May 2021 15:21:03 -0400

Merge pull request #220 from Rio6/fix-use-after-free

Don't free jpg_data
Diffstat:
Mi3lock.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/i3lock.c b/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);
             }
     }