[librsvg] (#405): Oops, free an error properly.



commit f5608502581207921b3b9e8adc53be7430945ade
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 5578a67c..d459487b 100644
--- a/gdk-pixbuf-loader/io-svg.c
+++ b/gdk-pixbuf-loader/io-svg.c
@@ -133,7 +133,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]