Commit d3efef14 authored by Christian Persch's avatar Christian Persch Committed by Hiroyuki Ikezoe

Simplify code by using g_clear_error

No need to provide our own implementation of this function.

Bug #620649.
parent a736624a
......@@ -119,17 +119,6 @@ rsvg_acquire_file_resource (const char *filename, const char *base_uri, GError *
#ifdef HAVE_GIO
static void
rsvg_free_error (GError ** err)
{
if (err) {
if (*err) {
g_error_free (*err);
*err = NULL;
}
}
}
static GByteArray *
rsvg_acquire_vfs_resource (const char *filename, const char *base_uri, GError ** error)
{
......@@ -148,7 +137,7 @@ rsvg_acquire_vfs_resource (const char *filename, const char *base_uri, GError **
if (base_uri != NULL) {
GFile *base;
rsvg_free_error (error);
g_clear_error (error);
g_object_unref (file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment