Changeset 2170
- Timestamp:
- 09/21/08 22:46:28 (4 months ago)
- Files:
-
- libswish3/trunk/src/libswish3/swish.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/swish.c
r2158 r2170 55 55 ) 56 56 { 57 boolean children_are_freed; 58 59 children_are_freed = 0; 57 60 s3->parser->ref_cnt--; 58 61 if (s3->parser->ref_cnt < 1) { 59 62 swish_free_parser(s3->parser); 63 children_are_freed++; 60 64 } 61 65 … … 63 67 if (s3->analyzer->ref_cnt < 1) { 64 68 swish_free_analyzer(s3->analyzer); 69 children_are_freed++; 65 70 } 66 71 … … 68 73 if (s3->config->ref_cnt < 1) { 69 74 swish_free_config(s3->config); 75 children_are_freed++; 70 76 } 71 77 … … 74 80 } 75 81 swish_xfree(s3); 76 swish_mem_debug(); 82 83 if (children_are_freed == 3) { 84 swish_mem_debug(); 85 } 77 86 } 78 87
