Browse files

Avoid TreeSet memleak.

  • Loading branch information...
1 parent 295ed5e commit d870e757fe6ebd75c892990aec2e32ff23cf3448 @ueno committed Jan 12, 2012
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),

0 comments on commit d870e75

Please sign in to comment.