diff --git a/wpiutil/src/main/native/cpp/protobuf/ProtobufMessageDatabase.cpp b/wpiutil/src/main/native/cpp/protobuf/ProtobufMessageDatabase.cpp index 303bf9d30a..7bf529fe52 100644 --- a/wpiutil/src/main/native/cpp/protobuf/ProtobufMessageDatabase.cpp +++ b/wpiutil/src/main/native/cpp/protobuf/ProtobufMessageDatabase.cpp @@ -18,8 +18,8 @@ bool ProtobufMessageDatabase::Add(std::string_view filename, if (file.complete) { file.complete = false; - m_factory.reset(); m_msgs.clear(); + m_factory.reset(); // rebuild the pool EXCEPT for this descriptor m_pool = std::make_unique();