diff options
Diffstat (limited to 'src/list.h')
-rw-r--r-- | src/list.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -434,11 +434,12 @@ namespace Bu | |||
434 | va.destroy( pCur->pValue ); | 434 | va.destroy( pCur->pValue ); |
435 | va.deallocate( pCur->pValue, 1 ); | 435 | va.deallocate( pCur->pValue, 1 ); |
436 | pFirst = pCur->pNext; | 436 | pFirst = pCur->pNext; |
437 | pFirst->pPrev = NULL; | ||
438 | la.destroy( pCur ); | 437 | la.destroy( pCur ); |
439 | la.deallocate( pCur, 1 ); | 438 | la.deallocate( pCur, 1 ); |
440 | if( pFirst == NULL ) | 439 | if( pFirst == NULL ) |
441 | pLast = NULL; | 440 | pLast = NULL; |
441 | else | ||
442 | pFirst->pPrev = NULL; | ||
442 | nSize--; | 443 | nSize--; |
443 | } | 444 | } |
444 | else | 445 | else |