diff --git a/IPython/html/static/notebook/js/widget.js b/IPython/html/static/notebook/js/widget.js
index 07bb53b..5e9b8fb 100644
--- a/IPython/html/static/notebook/js/widget.js
+++ b/IPython/html/static/notebook/js/widget.js
@@ -84,6 +84,7 @@ define(["components/underscore/underscore-min",
view.remove();
}
}
+ delete this.comm.model; // Delete ref so GC will collect widget model.
},
@@ -308,6 +309,7 @@ define(["components/underscore/underscore-min",
}
}
that.comm.close();
+ delete that.comm.model; // Delete ref so GC will collect widget model.
}
});
return view;