Skip to content

Commit

Permalink
Merge pull request #1398 from ahuarte47/GetMap-MapContent_dispose
Browse files Browse the repository at this point in the history
Avoid log about non existing memory leak
  • Loading branch information
aaime committed Jan 15, 2016
2 parents 1518189 + fdd86a2 commit 4f11c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wms/src/main/java/org/geoserver/wms/GetMap.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* (c) 2014 - 2015 Open Source Geospatial Foundation - all rights reserved
/* (c) 2014 - 2016 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2014 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
Expand Down Expand Up @@ -120,6 +120,7 @@ public WebMap run(GetMapRequest request) throws ServiceException {
map = fireFinished(map);
return map;
} catch (Throwable t) {
mapContent.dispose();
fireFailed(t);
if(t instanceof RuntimeException) {
throw (RuntimeException) t;
Expand Down

0 comments on commit 4f11c83

Please sign in to comment.