Mercurial > libpst
comparison src/pst2ldif.cpp @ 230:42b38d65f7e4
patches from Justin Greer
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 10 Sep 2009 13:01:08 -0700 |
parents | 2f38c4ce606f |
children | 410b6422d65b |
comparison
equal
deleted
inserted
replaced
229:e7f363452178 | 230:42b38d65f7e4 |
---|---|
58 // helper to free all the strings in a set | 58 // helper to free all the strings in a set |
59 // | 59 // |
60 static void free_strings(string_set &s); | 60 static void free_strings(string_set &s); |
61 static void free_strings(string_set &s) | 61 static void free_strings(string_set &s) |
62 { | 62 { |
63 if (s.empty()) return; | |
63 for (string_set::iterator i=s.begin(); i!=s.end(); i++) { | 64 for (string_set::iterator i=s.begin(); i!=s.end(); i++) { |
64 free((void*)*i); | 65 free((void*)*i); |
65 } | 66 } |
66 s.clear(); | 67 s.clear(); |
67 } | 68 } |