summaryrefslogtreecommitdiff
path: root/python/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/platform.py')
-rw-r--r--python/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/platform.py b/python/platform.py
index 279a80e1..13052e77 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -85,7 +85,7 @@ class Platform(metaclass=_PlatformMetaClass):
return core.BNGetPlatformName(self.handle)
def __del__(self):
- if self.handle is not None:
+ if core is not None:
core.BNFreePlatform(self.handle)
def __repr__(self):