Reset the freed pointers in XmlRpc::cleanup

`is_valid()` tests `m_env`, so it stayed true after `cleanup()`.
This commit is contained in:
noctuum
2026-09-28 17:24:13 +05:00
committed by Jari Sundell
parent a89ce3cd7b
commit d5ce0984fc
+2
View File
@@ -440,6 +440,8 @@ XmlRpc::cleanup() {
xmlrpc_registry_free((xmlrpc_registry*)m_registry);
xmlrpc_env_clean((xmlrpc_env*)m_env);
delete (xmlrpc_env*)m_env;
m_env = nullptr;
m_registry = nullptr;
}
bool