Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid TreeSet memleak.

  • Loading branch information...
commit d870e757fe6ebd75c892990aec2e32ff23cf3448 1 parent 295ed5e
@ueno authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/plist.vala
View
3  src/plist.vala
@@ -86,8 +86,9 @@ public class PList : Object {
public string to_string () {
var props = new ArrayList<string?> ();
- var keys = new TreeSet<string> ();
+ var keys = new ArrayList<string> ();
keys.add_all (map.keys);
+ keys.sort ();
foreach (var key in keys) {
var value = map.get (key);
props.add ("%s=%s".printf (PList.escape (key),
Please sign in to comment.
Something went wrong with that request. Please try again.