summaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-02-09 00:46:32 +0100
committerJavier <dev.git@javispedro.com>2014-02-09 00:46:32 +0100
commitb0f4f142bf7abdcc1a8b9437911b6794a3cb09d2 (patch)
treee46aa0e0c6645200450c933f3273c3f0a7dc988d /chrome
parentd27bdf9c86db7d8b8fcea0ec946e913ad2ba71b4 (diff)
downloadtopmenu-mozilla-b0f4f142bf7abdcc1a8b9437911b6794a3cb09d2.tar.gz
topmenu-mozilla-b0f4f142bf7abdcc1a8b9437911b6794a3cb09d2.zip
fix possible leaks
Diffstat (limited to 'chrome')
-rw-r--r--chrome/content/topmenuservice.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/content/topmenuservice.js b/chrome/content/topmenuservice.js
index ffafba8..494ea3e 100644
--- a/chrome/content/topmenuservice.js
+++ b/chrome/content/topmenuservice.js
@@ -572,7 +572,7 @@ WindowProxy.prototype.removeItem = function(item) {
var gtkItem = item.topmenuData.gtkItem;
gtk.gtk_widget_destroy(gtkItem);
- gtkItem.forget();
+ gtkItem.dispose();
delete item.topmenuData;
}
@@ -581,7 +581,7 @@ WindowProxy.prototype.removeMenu = function(menu) {
var gtkMenu = menu.topmenuData.gtkMenu;
gtk.gtk_widget_destroy(gtkMenu);
- gtkMenu.forget();
+ gtkMenu.dispose();
}
WindowProxy.prototype.updateItem = function(item, changedAttr) {