mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: fix jqplot memory leaks when replot the profile.
When replot the profile, old plots must be deleted to avoid memory leaks. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a562dd0e12
commit
7e45d93123
1 changed files with 5 additions and 0 deletions
|
@ -949,6 +949,11 @@ function canvas_draw()
|
|||
0
|
||||
]);
|
||||
}
|
||||
if (plot1)
|
||||
{
|
||||
$('chart1').unbind();
|
||||
plot1.destroy();
|
||||
}
|
||||
plot1 = $.jqplot('chart1', [
|
||||
depthData,
|
||||
pressureData,
|
||||
|
|
Loading…
Add table
Reference in a new issue