Skip to content

Commit

Permalink
Fixed memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed May 27, 2019
1 parent 05c9567 commit ebb9b24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/perspective/src/js/perspective.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ export default function(Module) {

const dtype = this._View.get_column_dtype(idx);

return format_function(slice, dtype, idx);
const rst = format_function(slice, dtype, idx);
slice.delete();
return rst;
};

/**
Expand Down Expand Up @@ -742,6 +744,7 @@ export default function(Module) {
view.prototype._get_row_delta = async function() {
let delta_slice = this._View.get_row_delta();
let arrow = await this.to_arrow({data_slice: delta_slice});
delta_slice.delete();
return arrow;
};

Expand Down

0 comments on commit ebb9b24

Please sign in to comment.