diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-20 15:25:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-21 11:59:09 +0200 |
commit | 2cd2130d67035d2bbfb5ebca6a82d0a53f89e298 (patch) | |
tree | ec9d8a7c2cd6475cb6f6c36c9c6edf5ecf83b550 /hwpfilter/source/hbox.h | |
parent | 2b9fe0c75ee93aa52f58dcee10c692a672b0cff7 (diff) |
cid#707898 Uninitialized pointer field
Change-Id: I9e972da45b10d6c88ade34fb69cb49affd2063fb
Diffstat (limited to 'hwpfilter/source/hbox.h')
-rw-r--r-- | hwpfilter/source/hbox.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h index 8be92f73023d..0dc7076a6b59 100644 --- a/hwpfilter/source/hbox.h +++ b/hwpfilter/source/hbox.h @@ -527,15 +527,16 @@ struct TCell struct Table { - Table(){}; - ~Table(){ + Table() : box(NULL) {}; + ~Table() { std::list<TCell*>::iterator it = cells.begin(); for( ; it != cells.end(); ++it) delete *it; }; + Columns columns; - Rows rows; - std::list<TCell*> cells; + Rows rows; + std::list<TCell*> cells; TxtBox *box; }; |