Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Robert committed Jul 4, 2014
2 parents 5527efb + 36c9364 commit cf34737
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,10 @@ public <T extends ERXRouteController> T controller(Class<T> controllerClass) {
*/
public void dispose() {
if (_shouldDisposeEditingContext && _editingContext != null) {
if(_editingContext instanceof ERXEC && ((ERXEC) _editingContext).isAutoLocked()) {
_editingContext.unlock();
}

_editingContext.dispose();
_editingContext = null;
}
Expand Down

0 comments on commit cf34737

Please sign in to comment.