dcoppa 3a96856ab4 Update to the latest svn snapshots:
numptyphysics -> 2010/09/16

npcomplete -> 2010/01/24

Kudos to sthen@ for mirroring the distfiles
2012-12-12 14:58:00 +00:00

22 lines
975 B
Plaintext

$OpenBSD: patch-Levels_cpp,v 1.2 2012/12/12 14:58:00 dcoppa Exp $
--- Levels.cpp.orig Wed Dec 5 15:53:11 2012
+++ Levels.cpp Thu Dec 6 14:06:04 2012
@@ -88,8 +88,7 @@ bool Levels::addPath( const char* path )
int len = strlen( path );
if ( strcasecmp( path+len-4, ".npz" )==0 ) {
scanCollection( string(path), rankFromPath(path) );
- } else if ( strcasecmp( path+len-4, ".nph" )==0
- || strcasecmp( path+len-4, ".npd" )==0) {
+ } else if ( strcasecmp( path+len-4, ".nph" )==0) {
addLevel( path, rankFromPath(path) );
} else {
DIR *dir = opendir( path );
@@ -125,6 +124,7 @@ bool Levels::addLevel( Collection* collection,
if ( collection->levels[i]->file == file
&& collection->levels[i]->index == index ) {
//printf("addLevel %s already present!\n",file.c_str());
+ delete e;
return false;
} else if ( collection->levels[i]->rank > rank ) {
//printf("insert level %s+%d at %d\n",file.c_str(),index,i);