[Libreoffice-commits] .: Branch 'gr2' - graphite/graphite2-0.9.2.patch
Martin Hosken
mhosken at kemper.freedesktop.org
Mon Mar 7 20:47:18 PST 2011
graphite/graphite2-0.9.2.patch | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit d15a5934aa3066c68bd8c3824927902bce02d3ec
Author: Martin Hosken <martin_hosken at sil.org>
Date: Tue Mar 8 11:45:57 2011 +0700
Fix memory leaks in vectors
diff --git a/graphite/graphite2-0.9.2.patch b/graphite/graphite2-0.9.2.patch
index ef7e4b2..5f13299 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; }
+
More information about the Libreoffice-commits
mailing list