Bug 710723. Finalize statement. r=mak.
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Thu, 15 Dec 2011 08:42:48 -0500
changeset 84277 28f79e3efeb4e6dfa488a92ae00617226340a4f2
parent 84276 3433303583afea1862bf789558c5fbb1fda90dec
child 84278 3eb0d74456112141a6d3889f06867d4ffa897150
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs710723
milestone11.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 710723. Finalize statement. r=mak.
toolkit/components/places/nsPlacesAutoComplete.js
--- a/toolkit/components/places/nsPlacesAutoComplete.js
+++ b/toolkit/components/places/nsPlacesAutoComplete.js
@@ -259,16 +259,17 @@ function nsPlacesAutoComplete()
       let params = stmt.newBindingParamsArray();
       for (let i = 0; i < this._openPagesCache.length; i++) {
         let bp = params.newBindingParams();
         bp.bindByName("page_url", this._openPagesCache[i]);
         params.addParams(bp);
       }
       stmt.bindParameters(params);
       stmt.executeAsync();
+      stmt.finalize();
       delete this._openPagesCache;
     }
 
     return db;
   });
 
   XPCOMUtils.defineLazyServiceGetter(this, "_bh",
                                      "@mozilla.org/browser/global-history;2",