Commit 8dbe1427 authored by peastman's avatar peastman
Browse files

Merge pull request #112 from peastman/master

Fixed deserialization error caused by SWIG not setting the object ownership flag (see bug 1902)
parents 25f18524 b4b121bf
......@@ -275,6 +275,7 @@ Parameters:
}
%feature(docstring, "This method exists only for backward compatibility. @deprecated Use deserialize() instead.") deserializeSystem;
%newobject deserializeSystem;
static OpenMM::System* deserializeSystem(const char* inputString) {
std::stringstream ss;
ss << inputString;
......@@ -287,6 +288,7 @@ Parameters:
return ss.str();
}
%newobject _deserializeForce;
static OpenMM::Force* _deserializeForce(const char* inputString) {
std::stringstream ss;
ss << inputString;
......@@ -299,6 +301,7 @@ Parameters:
return ss.str();
}
%newobject _deserializeIntegrator;
static OpenMM::Integrator* _deserializeIntegrator(const char* inputString) {
std::stringstream ss;
ss << inputString;
......
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