mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpiutil] ProtobufMessageDatabase: Clear messages first (#5827)
The message destructor appears to call something on the descriptor.
This commit is contained in:
@@ -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<google::protobuf::DescriptorPool>();
|
||||
|
||||
Reference in New Issue
Block a user