locationtech / udig-platform

uDig parent project containing all core components. More plugins can be found in community repos: http://github.com/uDig-Community
http://udig.refractions.net
190 stars 133 forks source link

Set even more variables to NULL if object is disposed #673

Closed sschulz92 closed 2 years ago

sschulz92 commented 2 years ago

In RenderContextImpl I changed the method disposed():

public void dispose() {
        image = null;
        imagesize = null;
        if (tempCache != null) {
            tempCache.flush();
            tempCache = null;
        }
        renderManagerInternal = null;
}