diff options
author | Evan Huus <eapache@gmail.com> | 2013-02-08 01:58:04 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-02-08 01:58:04 +0000 |
commit | 9fcb518818d6e90dcc28dbf3ba0a1663b1ad9cc4 (patch) | |
tree | 65e824a806e77b0ebd809a1cb3cadc1a27daf019 /epan | |
parent | 63313f0c7063a8bafea7cd87f63c805d0ce906d2 (diff) |
Make use of the new garbage-collection routines when closing a file.
svn path=/trunk/; revision=47550
Diffstat (limited to 'epan')
-rw-r--r-- | epan/wmem/wmem_scopes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/wmem/wmem_scopes.c b/epan/wmem/wmem_scopes.c index aa0c92791b..fbb1f75c43 100644 --- a/epan/wmem/wmem_scopes.c +++ b/epan/wmem/wmem_scopes.c @@ -126,6 +126,10 @@ wmem_leave_file_scope(void) wmem_free_all(file_scope); in_file_scope = FALSE; + + /* this seems like a good time to do garbage collection */ + wmem_gc(file_scope); + wmem_gc(packet_scope); } /* Epan Scope */ |