Use resize, not reserve

Reserve ensures the underlying buffer is the correct size, but
iterating across it is not necessarily valid. Use resize() instead
to ensure that the iterator access is valid

Change-Id: I35ff5f4416bb94cf4ce2c6acf72ffd17ab3e523a
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp
index dcd6bda..7a9c181 100644
--- a/libs/hwui/RenderNode.cpp
+++ b/libs/hwui/RenderNode.cpp
@@ -119,7 +119,7 @@
         mProperties = mStagingProperties;
     }
     if (mNeedsAnimatorsSync) {
-        mAnimators.reserve(mStagingAnimators.size());
+        mAnimators.resize(mStagingAnimators.size());
         std::vector< sp<RenderPropertyAnimator> >::iterator it;
         // hint: this means copy_if_not()
         it = std::remove_copy_if(mStagingAnimators.begin(), mStagingAnimators.end(),