Kaydet (Commit) 28159e10 authored tarafından Caolán McNamara's avatar Caolán McNamara

cmcfixes69: #i108178#: delete allocated object (removes unused code warning from callcatcher)

üst 6fbff330
...@@ -73,6 +73,10 @@ extern "C" { ...@@ -73,6 +73,10 @@ extern "C" {
return new IncludesCollection; return new IncludesCollection;
} }
void delete_IncludesCollection(IncludesCollection *m) {
delete m;
}
int call_IncludesCollection_exists(IncludesCollection* m, const char * filePath) { int call_IncludesCollection_exists(IncludesCollection* m, const char * filePath) {
return m->exists(filePath); return m->exists(filePath);
} }
......
...@@ -47,6 +47,7 @@ extern "C" { ...@@ -47,6 +47,7 @@ extern "C" {
#endif #endif
struct IncludesCollection * create_IncludesCollection(void); struct IncludesCollection * create_IncludesCollection(void);
void delete_IncludesCollection(struct IncludesCollection *);
int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath); int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath);
......
...@@ -465,6 +465,9 @@ int main(argc, argv) ...@@ -465,6 +465,9 @@ int main(argc, argv)
} }
if (printed) if (printed)
printf("\n"); printf("\n");
delete_IncludesCollection(incCollection);
exit(0); exit(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment