projects
/
platform
/
upstream
/
libgee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151512f
)
Fix memory leak on freeing LinkedList
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 20 Nov 2010 01:28:45 +0000
(
01:28
+0000)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 20 Nov 2010 01:31:48 +0000
(
01:31
+0000)
If fixes issue described in bug #635224
gee/linkedlist.vala
patch
|
blob
|
history
diff --git
a/gee/linkedlist.vala
b/gee/linkedlist.vala
index
842e1c7
..
76dc808
100644
(file)
--- a/
gee/linkedlist.vala
+++ b/
gee/linkedlist.vala
@@
-57,6
+57,11
@@
public class Gee.LinkedList<G> : AbstractList<G>, Queue<G>, Deque<G> {
}
this.equal_func = equal_func;
}
+
+ ~LinkedList () {
+ while (_head != null)
+ _remove_node (_head);
+ }
/**
* {@inheritDoc}