Commit 8b419e43 authored by Davis King's avatar Davis King

Fixed memory leak in java swig array binding tool.

parent 65b62c1b
...@@ -369,7 +369,11 @@ public: ...@@ -369,7 +369,11 @@ public:
operator java_type() const { return ref;} operator java_type() const { return ref;}
void swap(array& item) { std::swap(ref, item.ref); } void swap(array& item)
{
std::swap(ref, item.ref);
std::swap(is_global_ref, item.is_global_ref);
}
private: private:
java_type ref = NULL; java_type ref = NULL;
......
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