[glom/glom-1-26] LayoutItem: Destructor: Delete mPositions.



commit 4a2150071abccf80d0142a0b613b36c2602e2beb
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]