Skip to content

Commit b8ae516

Browse files
author
Nicholas Reed
committed
use scl_memmgr in clutils; SCL git 010e02b
1 parent 2b0ee25 commit b8ae516

File tree

7 files changed

+10
-1
lines changed

7 files changed

+10
-1
lines changed

src/clutils/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ SET(LIBSTEPUTILS_PRIVATE_HDRS
2020
)
2121

2222
include_directories(
23+
${SCL_SOURCE_DIR}/src/base
2324
${SCL_BINARY_DIR}/include
2425
${CMAKE_CURRENT_SOURCE_DIR}
2526
)
@@ -29,4 +30,4 @@ add_definitions( -DSCL_BASE_DLL_IMPORTS )
2930
add_definitions( -DSCL_UTILS_DLL_EXPORTS )
3031
endif()
3132

32-
SCL_ADDLIB(steputils "${LIBSTEPUTILS_SRCS}" "")
33+
SCL_ADDLIB(steputils "${LIBSTEPUTILS_SRCS}" "base")

src/clutils/dirobj.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
#include <string>
5454
#include <iostream>
5555

56+
#include <scl_memmgr.h>
57+
5658
///////////////////////////////////////////////////////////////////////////////
5759
//
5860
// Create a new DirObj object.
@@ -76,6 +78,7 @@ DirObj::DirObj( const char * dirName ) {
7678

7779
DirObj::~DirObj() {
7880
ClearFileList();
81+
delete [] fileList;
7982
}
8083

8184
//////////////////////////////// RealPath() ///////////////////////////////////

src/clutils/errordesc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <errordesc.h>
1414
#include <Str.h>
15+
#include <scl_memmgr.h>
1516

1617
DebugLevel ErrorDescriptor::_debug_level = DEBUG_OFF;
1718
ostream * ErrorDescriptor::_out = 0;

src/clutils/gennode.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <gennode.h>
1616
#include <gennodelist.h>
17+
#include <scl_memmgr.h>
1718

1819
//////////////////////////////////////////////////////////////////////////////
1920
// class GenericNode inline functions that depend on other classes

src/clutils/gennodearray.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <gennode.h>
1818
#include <gennodelist.h>
1919
#include <gennodearray.h>
20+
#include <scl_memmgr.h>
2021

2122
#ifndef HAVE_MEMMOVE
2223
extern "C" {

src/clutils/gennodelist.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <gennodelist.h>
1717
//#include <gennode.inline.h>
1818
#include <gennodearray.h>
19+
#include <scl_memmgr.h>
1920

2021
// inserts after existNode
2122
void GenNodeList::InsertAfter( GenericNode * newNode,

src/clutils/scl_hash.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <stdio.h>
1212
#include <stdlib.h>
1313
#include <string.h>
14+
#include <scl_memmgr.h>
1415

1516
/*************/
1617
/* constants */

0 commit comments

Comments
 (0)