Ignore:
Timestamp:
Nov 3, 2009, 12:37:55 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
5f9f8b
Parents:
df0520
git-author:
Frederik Heber <heber@…> (11/03/09 08:41:45)
git-committer:
Frederik Heber <heber@…> (11/03/09 12:37:55)
Message:

Several memory bugfixes (thx valgrind).

Fixed Calloc:

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/stackclass.hpp

    rdf0520 r8bc524  
    4848/** Constructor of class StackClass.
    4949 */
    50 template <typename T> StackClass<T>::StackClass(int dimension) : EntryCount(dimension), CurrentLastEntry(0), CurrentFirstEntry(0), NextFreeField(0)
    51 {
    52   StackList = Malloc<T>(EntryCount, "StackClass::StackClass: **StackList");
     50template <typename T> StackClass<T>::StackClass(int dimension) : StackList(NULL), EntryCount(dimension), CurrentLastEntry(0), CurrentFirstEntry(0), NextFreeField(0)
     51{
     52  StackList = Calloc<T>(EntryCount, "StackClass::StackClass: **StackList");
    5353};
    5454
Note: See TracChangeset for help on using the changeset viewer.