Skip to content

Commit 8f9a61e

Browse files
authored
Add virtual destructor (see #65)
1 parent 325f66c commit 8f9a61e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.13.3
1+
0.13.4

src/py_abstraction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ static inline PyObject* fuzz_call(bool processor_default, PyObject* args, PyObje
157157
}
158158

159159
struct CachedFuzz {
160+
/* deleting polymorphic object without virtual destructur results in undefined behaviour */
161+
virtual ~CachedFuzz() = default;
162+
160163
virtual void str1_set(python_string str)
161164
{
162165
m_str1 = std::move(str);

src/rapidfuzz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"""
44
__author__ = "Max Bachmann"
55
__license__ = "MIT"
6-
__version__ = "0.13.3"
6+
__version__ = "0.13.4"
77

88
from rapidfuzz import process, fuzz, utils, levenshtein

0 commit comments

Comments
 (0)