From: Nathan N. <nn...@us...> - 2005-04-20 02:16:12
|
Update of /cvsroot/tora/tora In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6219 Modified Files: NEWS toresultitem.cpp toresultitem.h Log Message: apply patch 1175927 Index: toresultitem.cpp =================================================================== RCS file: /cvsroot/tora/tora/toresultitem.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** toresultitem.cpp 19 Apr 2005 10:30:40 -0000 1.43 --- toresultitem.cpp 20 Apr 2005 02:16:03 -0000 1.44 *************** *** 81,85 **** enableClipper(true); ReadableColumns = readable; - Widgets = NULL; NumWidgets = 0; WidgetPos = 0; --- 81,84 ---- *************** *** 169,179 **** { NumWidgets += ALLOC_SIZE; ! QWidget **tmp = new QWidget * [NumWidgets]; ! for (int i = 0;i < WidgetPos;i++) ! tmp[i] = Widgets[i]; ! delete Widgets; ! Widgets = tmp; ! for (int j = WidgetPos;j < NumWidgets;j++) ! Widgets[j] = NULL; } QString t; --- 168,172 ---- { NumWidgets += ALLOC_SIZE; ! Widgets.resize(NumWidgets,0); } QString t; Index: NEWS =================================================================== RCS file: /cvsroot/tora/tora/NEWS,v retrieving revision 1.980 retrieving revision 1.981 diff -C2 -d -r1.980 -r1.981 *** NEWS 2 Apr 2005 12:24:57 -0000 1.980 --- NEWS 20 Apr 2005 02:16:03 -0000 1.981 *************** *** 9,12 **** --- 9,13 ---- 2005-04-02: updated otl to 4.0.110 2005-04-02: Fix bug with NVARCHAR2/NCHAR2 fields not displaying properly (Bug# 1115326) + 2005-05-19: Applied patch 1175927 to fix memory leak. 1.3.16: 2005-03-04 Index: toresultitem.h =================================================================== RCS file: /cvsroot/tora/tora/toresultitem.h,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** toresultitem.h 19 Apr 2005 10:30:39 -0000 1.29 --- toresultitem.h 20 Apr 2005 02:16:03 -0000 1.30 *************** *** 46,49 **** --- 46,51 ---- #include <qfont.h> + #include <vector> + class QGrid; class toSQL; *************** *** 71,75 **** /** List of allocated widgets. */ ! QWidget **Widgets; /** If title names are to be made more readable. --- 73,77 ---- /** List of allocated widgets. */ ! std::vector<QWidget*> Widgets; /** If title names are to be made more readable. |