[librsvg/librsvg-2.44] (#405): Oops, free an error properly.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.44] (#405): Oops, free an error properly.
- Date: Sun, 20 Jan 2019 04:23:48 +0000 (UTC)
commit 9cb12b4bfdc63aa54aa0e0a58afb600b5124383d
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Jan 19 18:46:47 2019 -0600
(#405): Oops, free an error properly.
https://gitlab.gnome.org/GNOME/librsvg/issues/405
gdk-pixbuf-loader/io-svg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk-pixbuf-loader/io-svg.c b/gdk-pixbuf-loader/io-svg.c
index 06b5aef9..90eb758a 100644
--- a/gdk-pixbuf-loader/io-svg.c
+++ b/gdk-pixbuf-loader/io-svg.c
@@ -131,7 +131,7 @@ gdk_pixbuf__svg_image_load_increment (gpointer data,
}
if (!rsvg_handle_write (context->handle, buf, size, error)) {
- g_clear_pointer(error, g_error_free);
+ g_clear_error(error);
rsvg_propagate_error (error, _("Error writing"), ERROR_WRITING);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]