Skip to content

Commit 2f9de7c

Browse files
committed
remove unused and un-freed GError
docs say passing null is allowed
1 parent 61e474e commit 2f9de7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Image.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,9 +1471,8 @@ Image::loadSVGFromBuffer(uint8_t *buf, unsigned len) {
14711471
_is_svg = true;
14721472

14731473
cairo_status_t status;
1474-
GError *gerr = NULL;
14751474

1476-
if (NULL == (_rsvg = rsvg_handle_new_from_data(buf, len, &gerr))) {
1475+
if (NULL == (_rsvg = rsvg_handle_new_from_data(buf, len, nullptr))) {
14771476
return CAIRO_STATUS_READ_ERROR;
14781477
}
14791478

0 commit comments

Comments
 (0)