Merge tag android-5.1.0_r1 into AOSP_5.1_MERGE

Change-Id: I866372554efb330f5c88913b9105bac59f3fef1f
diff --git a/rs_version.mk b/rs_version.mk
index cbb70e9..909496a 100644
--- a/rs_version.mk
+++ b/rs_version.mk
@@ -14,7 +14,7 @@
 # limitations under the License.
 #
 
-RS_VERSION := 21
+RS_VERSION := 22
 RS_VERSION_DEFINE := -DRS_VERSION=$(RS_VERSION)
 
 # Use RS_VERSION_DEFINE as part of your LOCAL_CFLAGS to have the proper value.
diff --git a/slang.cpp b/slang.cpp
index c3ab7e6..039b17a 100644
--- a/slang.cpp
+++ b/slang.cpp
@@ -452,8 +452,6 @@
 
   // The compilation ended, clear
   mBackend.reset();
-  mASTContext.reset();
-  mPP.reset();
   mOS.reset();
 
   return mDiagEngine->hasErrorOccurred() ? 1 : 0;