Merge "Reset gPreInitializedApplication to reduce reference count" into devel/master