[glom] LayoutItem: Destructor: Delete mPositions.



commit b5932b2f7a940a02b75242eb4aa896f00ba291ea
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Dec 2 19:20:00 2014 +0100

    LayoutItem: Destructor: Delete mPositions.
    
    Found by Coverity Scan.

 glom/libglom/data_structure/layout/layoutitem.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glom/libglom/data_structure/layout/layoutitem.cc 
b/glom/libglom/data_structure/layout/layoutitem.cc
index 11e9d16..a7ca91a 100644
--- a/glom/libglom/data_structure/layout/layoutitem.cc
+++ b/glom/libglom/data_structure/layout/layoutitem.cc
@@ -82,6 +82,7 @@ LayoutItem::LayoutItem(const LayoutItem& src)
 
 LayoutItem::~LayoutItem()
 {
+  delete m_positions;
 }
 
 LayoutItem& LayoutItem::operator=(const LayoutItem& src)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]