fix: Python shutdown errors

This commit is contained in:
rtw1x1
2026-01-21 08:50:33 +00:00
parent b72982cc62
commit a31c0bfacf
7 changed files with 32 additions and 29 deletions

View File

@@ -27,7 +27,8 @@ class CursorImage(object):
self.LoadImage(imageName)
def __del__(self):
grpImage.Delete(self.handle)
if grpImage and self.handle:
grpImage.Delete(self.handle)
def LoadImage(self, imageName):
try: