fixed bug 25986: notes datasources are leaked
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 13 Mar 2014 18:06:12 +0100
changeset 22706 f8fcc834d0c1
parent 22705 15994dc74cd8
child 22707 0630b904462c
fixed bug 25986: notes datasources are leaked
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Thu Mar 13 15:32:33 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Thu Mar 13 18:06:12 2014 +0100
@@ -281,6 +281,12 @@
       this.dataSource.destroy();
       this.dataSource = null;
     }
+
+    // destroy notes datasource
+    if (this.notesDataSource) {
+      this.notesDataSource.destroy();
+      this.notesDataSource = null;
+    }
     return this.Super('destroy', arguments);
   },