[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/core pgdatacontainer.cpp,1.1,1.1.6.1
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/core pgdatacontainer.cpp,1.1,1.1.6.1 |
Date: |
Tue, 30 Jul 2002 06:18:40 -0400 |
Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv20229/src/core
Modified Files:
Tag: devel-1-0
pgdatacontainer.cpp
Log Message:
more valgrind fixes
Index: pgdatacontainer.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgdatacontainer.cpp,v
retrieving revision 1.1
retrieving revision 1.1.6.1
diff -C2 -r1.1 -r1.1.6.1
*** pgdatacontainer.cpp 15 Apr 2002 14:53:56 -0000 1.1
--- pgdatacontainer.cpp 30 Jul 2002 10:18:37 -0000 1.1.6.1
***************
*** 30,33 ****
--- 30,38 ----
PG_DataContainer::PG_DataContainer(Uint32 size) {
+ if(size == 0) {
+ my_data = NULL;
+ my_size = 0;
+ }
+
my_data = new char[size];
my_size = size;
***************
*** 35,39 ****
PG_DataContainer::~PG_DataContainer() {
! delete[] my_data;
}
--- 40,46 ----
PG_DataContainer::~PG_DataContainer() {
! if(my_data != NULL) {
! delete[] my_data;
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/core pgdatacontainer.cpp,1.1,1.1.6.1,
Alexander Pipelka <address@hidden> <=