Skip to content

Commit

Permalink
Bugfix: memory leak fixed, that was caused by a listener created by the
Browse files Browse the repository at this point in the history
"AbstractTabLayoutManagerPane". The listener was never removed properly.
Thanks mattbru2 for finding the bug!
  • Loading branch information
Benoker committed Jun 4, 2017
1 parent 1007a96 commit f78688c
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docking-frames-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>docking-frames-common</artifactId>
Expand Down
5 changes: 4 additions & 1 deletion docking-frames-core/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1115,4 +1115,7 @@
[v1.1.2p19a]
- Bugfix: when adding an action to an existing dropdown-menu, then the action was always added at the end of the menu
- Bugfix (provided by Nicolas Roduit): properly read java version specification number of Java 9 (see "DockUI.registerColors")
- Feature (provided by Nicolas Roduit): new and better translations for various languages
- Feature (provided by Nicolas Roduit): new and better translations for various languages

[v1.1.2p19b]
- Bugfix: memory leak fixed, that was caused by a listener created by the "AbstractTabLayoutManagerPane". The listener was never removed properly. Thanks mattbru2 for finding the bug!
2 changes: 1 addition & 1 deletion docking-frames-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>docking-frames-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void uninstall( TabPane pane ){
iterator.remove();
pane.removeTabPaneListener( next );
destroy( next );
next.uninstalled();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ public void removed( TabPane pane, Dockable dockable ){
public void selectionChanged( TabPane pane ){
// ignore
}

/**
* Called by the {@link AbstractTabLayoutManager} once this pane is no longer in use.
*/
public void uninstalled(){
useSmallMinimumSize.setProperties( (DockController)null );
}

public void controllerChanged( TabPane pane, DockController controller ){
useSmallMinimumSize.setProperties( controller );
Expand Down
2 changes: 1 addition & 1 deletion docking-frames-core/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.2-P19a
1.1.2-P19b
2 changes: 1 addition & 1 deletion docking-frames-demo-tutorial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>tutorial</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docking-frames-ext-glass/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>docking-frames-ext-glass</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docking-frames-ext-toolbar-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>docking-frames-ext-toolbar-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docking-frames-ext-toolbar-tutorial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>tutorial-toolbar</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docking-frames-ext-toolbar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
</parent>

<artifactId>docking-frames-ext-toolbar</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.dockingframes</groupId>
<artifactId>docking-frames-base</artifactId>
<version>1.1.2-P19a</version>
<version>1.1.2-P19b</version>
<packaging>pom</packaging>

<modules>
Expand Down

0 comments on commit f78688c

Please sign in to comment.