zbyszek / rpms / pyhunspell

Forked from rpms/pyhunspell 6 years ago
Clone
Blob Blame History Raw
From bb8321f1189e515f985be7b7d6273b91868994db Mon Sep 17 00:00:00 2001
From: Fabien Bourrel <fabien.bourrel@hotmail.fr>
Date: Fri, 2 Feb 2018 23:03:36 +0100
Subject: [PATCH 10/12] Delete the object on dealloc

---
 hunspell.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hunspell.cpp b/hunspell.cpp
index 995d0c1..6650641 100644
--- a/hunspell.cpp
+++ b/hunspell.cpp
@@ -97,6 +97,7 @@ HunSpell_init(HunSpell * self, PyObject *args, PyObject *kwds)
 static void
 HunSpell_dealloc(HunSpell * self)
 {
+    delete self->handle;
     Py_TYPE(self)->tp_free((PyObject *)self);
 }
 
-- 
2.14.3