Changeset 2171 for libswish3/trunk/src/libswish3/swish.c
- Timestamp:
- 09/22/08 00:08:00 (4 months ago)
- Files:
-
- libswish3/trunk/src/libswish3/swish.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/libswish3/swish.c
r2170 r2171 31 31 { 32 32 swish_3 *s3; 33 swish_init();34 33 s3 = swish_xmalloc(sizeof(swish_3)); 35 34 s3->ref_cnt = 0; … … 54 53 swish_3 *s3 55 54 ) 56 { 57 boolean children_are_freed; 58 59 children_are_freed = 0; 55 { 60 56 s3->parser->ref_cnt--; 61 57 if (s3->parser->ref_cnt < 1) { 62 58 swish_free_parser(s3->parser); 63 children_are_freed++;64 59 } 65 60 … … 67 62 if (s3->analyzer->ref_cnt < 1) { 68 63 swish_free_analyzer(s3->analyzer); 69 children_are_freed++;70 64 } 71 65 … … 73 67 if (s3->config->ref_cnt < 1) { 74 68 swish_free_config(s3->config); 75 children_are_freed++;76 69 } 77 70 … … 80 73 } 81 74 swish_xfree(s3); 82 83 if (children_are_freed == 3) {84 swish_mem_debug();85 }86 75 } 87 76 77 /* MUST call this before instantiating any swish_3 objects */ 88 78 void 89 79 swish_init(
