mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-21 22:52:22 +00:00
Memory leak
Fix viewer memory leak whereby background measurements weren't being cleared between data loads, so eventually ran out of memory.
This commit is contained in:
parent
4f734b7775
commit
3b053ff342
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.pamguard</groupId>
|
||||
<artifactId>Pamguard</artifactId>
|
||||
<version>2.02.05</version>
|
||||
<version>2.02.05a</version>
|
||||
<name>Pamguard Java12+</name>
|
||||
<description>Pamguard for Java 12+, using Maven to control dependcies</description>
|
||||
<url>www.pamguard.org</url>
|
||||
|
@ -31,12 +31,12 @@ public class PamguardVersionInfo {
|
||||
* Version number, major version.minorversion.sub-release.
|
||||
* Note: can't go higher than sub-release 'f'
|
||||
*/
|
||||
static public final String version = "2.02.05";
|
||||
static public final String version = "2.02.05a";
|
||||
|
||||
/**
|
||||
* Release date
|
||||
*/
|
||||
static public final String date = "21 October 2022";
|
||||
static public final String date = "11 November 2022";
|
||||
|
||||
// /**
|
||||
// * Release type - Beta or Core
|
||||
|
@ -65,6 +65,7 @@ import PamDetection.LocalisationInfo;
|
||||
import PamUtils.PamCalendar;
|
||||
import PamUtils.PamUtils;
|
||||
import PamView.symbol.PamSymbolManager;
|
||||
import PamguardMVC.background.BackgroundDataBlock;
|
||||
import PamguardMVC.background.BackgroundManager;
|
||||
import PamguardMVC.dataOffline.OfflineDataLoadInfo;
|
||||
import PamguardMVC.dataOffline.OfflineDataLoading;
|
||||
@ -944,6 +945,12 @@ public class PamDataBlock<Tunit extends PamDataUnit> extends PamObservable {
|
||||
recycledUnits.clear();
|
||||
}
|
||||
}
|
||||
if (backgroundManager != null) {
|
||||
BackgroundDataBlock bdb = backgroundManager.getBackgroundDataBlock();
|
||||
if (bdb != null) {
|
||||
bdb.clearAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user