Commit 60313a6a authored by Xavier Thompson's avatar Xavier Thompson

Fix missing incref when converting templated cypclass smart pointer to raw cypclass pointer

parent 0b6056bd
...@@ -148,7 +148,10 @@ ...@@ -148,7 +148,10 @@
return uobj; return uobj;
} }
constexpr operator T*() const noexcept { operator T*() const {
if (uobj != nullptr) {
uobj->CyObject_INCREF();
}
return uobj; return uobj;
} }
......
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