mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-13 02:20:33 +01:00
Merge branch 'cm/fix-uaf-warning' into 'master'
xcb: Fix a -Wuse-after-free=3 warning with GCC Closes #898 See merge request cairo/cairo!623
This commit is contained in:
commit
a3ca983ec3
1 changed files with 1 additions and 1 deletions
|
|
@ -93,13 +93,13 @@ _cairo_xcb_connection_shm_get_image (cairo_xcb_connection_t *connection,
|
|||
XCB_IMAGE_FORMAT_Z_PIXMAP,
|
||||
shmseg, offset),
|
||||
NULL);
|
||||
free (reply);
|
||||
|
||||
if (!reply) {
|
||||
/* an error here should be impossible */
|
||||
return _cairo_error (CAIRO_STATUS_READ_ERROR);
|
||||
}
|
||||
|
||||
free (reply);
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue