summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-01-09 14:59:14 +0000
committerCaolán McNamara <cmc@openoffice.org>2010-01-09 14:59:14 +0000
commit28159e10f92b56dadb2cec057532f41f4fa51fad (patch)
tree1e3079eb52bcd46899338310d131dcbabb9cb0a8 /soltools
parent6fbff3306d63beb13f4ba8f1d44e815201284f2f (diff)
cmcfixes69: #i108178#: delete allocated object (removes unused code warning from callcatcher)
Diffstat (limited to 'soltools')
-rwxr-xr-xsoltools/mkdepend/collectdircontent.cxx4
-rw-r--r--soltools/mkdepend/collectdircontent.hxx1
-rw-r--r--soltools/mkdepend/main.c3
3 files changed, 8 insertions, 0 deletions
diff --git a/soltools/mkdepend/collectdircontent.cxx b/soltools/mkdepend/collectdircontent.cxx
index 691996d56cca..c9308faf0562 100755
--- a/soltools/mkdepend/collectdircontent.cxx
+++ b/soltools/mkdepend/collectdircontent.cxx
@@ -73,6 +73,10 @@ extern "C" {
return new IncludesCollection;
}
+ void delete_IncludesCollection(IncludesCollection *m) {
+ delete m;
+ }
+
int call_IncludesCollection_exists(IncludesCollection* m, const char * filePath) {
return m->exists(filePath);
}
diff --git a/soltools/mkdepend/collectdircontent.hxx b/soltools/mkdepend/collectdircontent.hxx
index 1ffd9cf60f0c..1896df0c8bc7 100644
--- a/soltools/mkdepend/collectdircontent.hxx
+++ b/soltools/mkdepend/collectdircontent.hxx
@@ -47,6 +47,7 @@ extern "C" {
#endif
struct IncludesCollection * create_IncludesCollection(void);
+void delete_IncludesCollection(struct IncludesCollection *);
int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath);
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c
index a786f5a4d7f6..fd9bdc18e5d2 100644
--- a/soltools/mkdepend/main.c
+++ b/soltools/mkdepend/main.c
@@ -465,6 +465,9 @@ int main(argc, argv)
}
if (printed)
printf("\n");
+
+ delete_IncludesCollection(incCollection);
+
exit(0);
}