#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Fri, 15 Sep 2017 12:42:36 +0200
changeset 8177 481a5ef90d18
parent 8176 33f71b59070d
child 8178 adb230e49846
#BUGFIX by cg class: XftFontDescription changed: #releaseFromDevice
XftFontDescription.st
--- a/XftFontDescription.st	Wed Sep 13 13:36:50 2017 +0200
+++ b/XftFontDescription.st	Fri Sep 15 12:42:36 2017 +0200
@@ -1170,12 +1170,18 @@
 releaseFromDevice
     "I am no longer available on the device"
 
+    |deviceID|
+    
     (device notNil and:[fontId notNil]) ifTrue:[
-	self class xftFontClose:fontId displayId:device displayId.
-	device := nil.
-	fontId := nil.
-	width := nil.
+        (deviceID := device displayId) notNil ifTrue:[
+            self class xftFontClose:fontId displayId:deviceID.
+        ].
+        device := nil.
+        fontId := nil.
+        width := nil.
     ].
+
+    "Modified: / 15-09-2017 / 12:42:25 / cg"
 ! !
 
 !XftFontDescription methodsFor:'testing'!