Retain reference to offscreen drawing surface so we can release it when the context goes away. Bug 206561, author=Roland.Mainz@informatik.med.uni-giessen.de, r+sr=roc+moz

This commit is contained in:
smontagu%netscape.com 2003-05-30 20:29:11 +00:00
parent 33cce84916
commit befc9b2672

View File

@ -214,6 +214,7 @@ nsRenderingContextXlib::Init(nsIDeviceContext* aContext, nsDrawingSurface aSurfa
mDisplay = xxlib_rgb_get_display(mXlibRgbHandle);
mSurface = (nsIDrawingSurfaceXlib *)aSurface;
mOffscreenSurface = mSurface;
return CommonInit();
}