Commit 4e0c46f9 authored by Feng Xiao's avatar Feng Xiao

Explicitly call destructor of Mutex to release resources.

Change-Id: I808f4a3689e723d4490aa9ba6f1c14e3936ddcec
parent 72f17c43
......@@ -68,7 +68,11 @@ class LIBPROTOBUF_EXPORT MapFieldBase {
repeated_field_(NULL),
entry_descriptor_(NULL),
assign_descriptor_callback_(NULL),
state_(STATE_MODIFIED_MAP) {}
state_(STATE_MODIFIED_MAP) {
// Mutex's destructor needs to be called explicitly to release resources
// acquired in its constructor.
arena->OwnDestructor(&mutex_);
}
virtual ~MapFieldBase();
// Returns reference to internal repeated field. Data written using
......
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