Skip to content

Commit

Permalink
Add virtual destructor (see #65)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Nov 30, 2020
1 parent 325f66c commit 8f9a61e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.3
0.13.4
3 changes: 3 additions & 0 deletions src/py_abstraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ static inline PyObject* fuzz_call(bool processor_default, PyObject* args, PyObje
}

struct CachedFuzz {
/* deleting polymorphic object without virtual destructur results in undefined behaviour */
virtual ~CachedFuzz() = default;

virtual void str1_set(python_string str)
{
m_str1 = std::move(str);
Expand Down
2 changes: 1 addition & 1 deletion src/rapidfuzz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""
__author__ = "Max Bachmann"
__license__ = "MIT"
__version__ = "0.13.3"
__version__ = "0.13.4"

from rapidfuzz import process, fuzz, utils, levenshtein

0 comments on commit 8f9a61e

Please sign in to comment.