[gxml/gxml-0.20] XParser: Fix memory leaks
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gxml-0.20] XParser: Fix memory leaks
- Date: Mon, 23 Aug 2021 03:06:43 +0000 (UTC)
commit bbd6e351438e1ae0eed1ac9a795d57217de189cf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 17 08:34:04 2021 +0100
XParser: Fix memory leaks
gxml/XParser.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gxml/XParser.vala b/gxml/XParser.vala
index f0266b3a..67ab0fa2 100644
--- a/gxml/XParser.vala
+++ b/gxml/XParser.vala
@@ -63,14 +63,14 @@ public class GXml.XParser : GLib.Object, GXml.Parser {
public void write_stream (OutputStream stream) throws GLib.Error {
var s = dump ();
- var b = new GLib.MemoryInputStream.from_data (s.data, null);
+ var b = new GLib.MemoryInputStream.from_data (s.data);
stream.splice (b, GLib.OutputStreamSpliceFlags.NONE, cancellable);
stream.close ();
tw = null;
}
public async void write_stream_async (OutputStream stream) throws GLib.Error {
var s = yield dump_async ();
- var b = new GLib.MemoryInputStream.from_data (s.data, null);
+ var b = new GLib.MemoryInputStream.from_data (s.data);
yield stream.splice_async (b, GLib.OutputStreamSpliceFlags.NONE, 0, cancellable);
tw = null;
}
@@ -83,7 +83,7 @@ public class GXml.XParser : GLib.Object, GXml.Parser {
create_stream () throws GLib.Error {
var s = dump ();
tw = null;
- return new GLib.MemoryInputStream.from_data (s.data, null);
+ return new GLib.MemoryInputStream.from_data (s.data);
}
/**
* Creates asynchronically an {@link GLib.InputStream} to write a string representation
@@ -93,7 +93,7 @@ public class GXml.XParser : GLib.Object, GXml.Parser {
create_stream_async () throws GLib.Error {
var s = yield dump_async ();
tw = null;
- return new GLib.MemoryInputStream.from_data (s.data, null);
+ return new GLib.MemoryInputStream.from_data (s.data);
}
public string write_string () throws GLib.Error {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]