Initialize next_pointer_flow_id_ to 0 (flutter/engine#9026)

This member variable was added to three classes in #7807, but only
initialized to 0 in one of them. Initialize to 0 in the other two.
This commit is contained in:
Matthew Dempsky 2019-05-20 16:52:16 -07:00 committed by GitHub
parent 3aed059cc5
commit ca6d80857f
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class AndroidShellHolder {
std::unique_ptr<Shell> shell_;
bool is_valid_ = false;
pthread_key_t thread_destruct_key_;
uint64_t next_pointer_flow_id_;
uint64_t next_pointer_flow_id_ = 0;
static void ThreadDestructCallback(void* value);

View File

@ -75,7 +75,7 @@ class EmbedderEngine {
const EmbedderExternalTextureGL::ExternalTextureCallback
external_texture_callback_;
bool is_valid_ = false;
uint64_t next_pointer_flow_id_;
uint64_t next_pointer_flow_id_ = 0;
FML_DISALLOW_COPY_AND_ASSIGN(EmbedderEngine);
};