Commit fd713b46 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

scanner: fix close stream before steal data

parent 9f1a6eff
......@@ -53,6 +53,7 @@ public class GVls.GScanner : Object {
var ostream = new GLib.MemoryOutputStream.resizable ();
var istream = file.read ();
ostream.splice (istream, GLib.OutputStreamSpliceFlags.CLOSE_SOURCE, null);
ostream.close ();
_content = (string) ostream.steal_data ();
} catch (GLib.Error e) {
warning ("Error reading file contents: %s", e.message);
......
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