diff options
author | Martin Hosken <martin_hosken@sil.org> | 2011-03-08 11:45:57 +0700 |
---|---|---|
committer | Martin Hosken <martin_hosken@sil.org> | 2011-03-10 22:39:00 +0700 |
commit | a7fe7cb634a50a396a24306f1258b1ed650dedff (patch) | |
tree | e7b119cdad020fb411d793d22ca6d69af75c7d2d /graphite | |
parent | 945c9208f1b9434e92f95a8412f4fa643aacfdcd (diff) |
Fix memory leaks in vectors
Diffstat (limited to 'graphite')
-rw-r--r-- | graphite/graphite2-0.9.2.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphite/graphite2-0.9.2.patch b/graphite/graphite2-0.9.2.patch index ef7e4b2f0a0f..5f132997d4e8 100644 --- a/graphite/graphite2-0.9.2.patch +++ b/graphite/graphite2-0.9.2.patch @@ -368,3 +368,15 @@ diff -r 5369cdd12120 src/gr_slot.cpp int gr_slot_attr(const gr_slot* p/*not NULL*/, const gr_segment* pSeg/*not NULL*/, gr_attrCode index, gr_uint8 subindex) { assert(p); +diff current src/List.h +--- misc/build/graphite2-0.9.2/src/List.h Sat Feb 12 22:54:16 2011 +0700 ++++ misc/build/graphite2-0.9.2/src/List.h Fri Feb 18 16:05:40 2011 +0700 +@@ -51,6 +51,6 @@ + template <typename I> + Vector(I first, const I last) : m_first(0), m_last(0), m_end(0) { insert(begin(), first, last); } +- ~Vector() { free(m_first); } ++ ~Vector() { clear(); free(m_first); } + + iterator begin() { return m_first; } + const_iterator begin() const { return m_first; } + |