[librsvg] RsvgLoad: don't store a GCancellable
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] RsvgLoad: don't store a GCancellable
- Date: Thu, 6 Dec 2018 00:12:53 +0000 (UTC)
commit 460df82a7bc5dc829e4cc00951e4dedeb08f0e00
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Dec 5 15:54:09 2018 -0600
RsvgLoad: don't store a GCancellable
It is always passed around, or obtained from the RsvgHandle.
librsvg/rsvg-load.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/librsvg/rsvg-load.c b/librsvg/rsvg-load.c
index e809b2f9..5b70c266 100644
--- a/librsvg/rsvg-load.c
+++ b/librsvg/rsvg-load.c
@@ -76,8 +76,6 @@ struct RsvgLoad {
LoadState state;
- GCancellable *cancellable;
-
GError **error;
GInputStream *compressed_input_stream; /* for rsvg_handle_write of svgz data */
@@ -93,7 +91,6 @@ rsvg_load_new (RsvgHandle *handle, gboolean unlimited_size)
load->handle = handle;
load->unlimited_size = unlimited_size;
load->state = LOAD_STATE_START;
- load->cancellable = NULL;
load->error = NULL;
load->compressed_input_stream = NULL;
@@ -316,7 +313,6 @@ rsvg_load_read_stream_sync (RsvgLoad *load,
}
load->error = &err;
- load->cancellable = cancellable ? g_object_ref (cancellable) : NULL;
g_assert (load->xml.ctxt == NULL);
xml_parser = rsvg_create_xml_stream_parser (load->xml.rust_state,
@@ -356,7 +352,6 @@ rsvg_load_read_stream_sync (RsvgLoad *load,
g_object_unref (stream);
load->error = NULL;
- g_clear_object (&load->cancellable);
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]