Bug 884398 - Don't keep reference to inflater after BrowserSearch detachment (r=bnicholson)
authorLucas Rocha <lucasr@mozilla.com>
Tue, 25 Jun 2013 17:51:57 +0100
changeset 143354 c6c7f52d4ce75495018f1d3d1996d8c8355cd50f
parent 143353 dff89eb24573650c47235051a3a93692a69a19d5
child 143355 86b02c1b76542d6865996715a33af6651e6c8a97
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson
bugs884398
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 884398 - Don't keep reference to inflater after BrowserSearch detachment (r=bnicholson)
mobile/android/base/BrowserSearch.java
--- a/mobile/android/base/BrowserSearch.java
+++ b/mobile/android/base/BrowserSearch.java
@@ -172,16 +172,17 @@ public class BrowserSearch extends HomeF
 
         mInflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     }
 
     @Override
     public void onDetach() {
         super.onDetach();
 
+        mInflater = null;
         mUrlOpenListener = null;
         mSearchListener = null;
         mEditSuggestionListener = null;
     }
 
     @Override
     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
         // All list views are styled to look the same with a global activity theme.