Skip to content
Snippets Groups Projects
Commit a5485111 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix memory leak

parent 7f5cb7ff
Branches
Tags
No related merge requests found
......@@ -102,13 +102,12 @@
public:
// make "deletion" in scripting language just decrement ref. count
~class_name() {self->UnRegister();};
~class_name()
{
self->UnRegister();
}
%ignore class_name::~class_name;
%ignore class_name##_Pointer;
}
%enddef
......
......@@ -146,7 +146,7 @@ public:
// ParameterGroup* GetParameterList();
// Parameter* GetParameterByKey(std::string parameter);
// const Parameter* GetParameterByKey(std::string parameter) const;
std::list<std::string> GetParametersKeys();
std::vector<std::string> GetParametersKeys(bool recursive = true);
std::string GetParameterName(std::string);
std::string GetParameterDescription(std::string);
......@@ -170,7 +170,7 @@ public:
protected:
Application();
virtual ~Application();
//virtual ~Application();
void AddChoice(std::string paramKey, std::string paramName);
void AddParameter(otb::Wrapper::ParameterType type, std::string paramKey, std::string paramName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment