Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix leak of AOT internal type outside
- Loading branch information
Showing
with
3 additions
and
4 deletions.
-
+2
−2
src/sphinxaot.cpp
-
+1
−2
src/sphinxstem.h
|
@@ -1740,10 +1740,10 @@ class CSphAotTokenizer : public CSphAotTokenizerTmpl |
|
|
}; |
|
|
|
|
|
|
|
|
CSphTokenFilter * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask ) |
|
|
ISphTokenizer * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask ) |
|
|
{ |
|
|
assert ( uLangMask!=0 ); |
|
|
CSphRefcountedPtr<CSphTokenFilter> pDerivedTokenizer; |
|
|
CSphRefcountedPtr<ISphTokenizer> pDerivedTokenizer; |
|
|
for ( int i=AOT_BEGIN; i<AOT_LENGTH; ++i ) |
|
|
{ |
|
|
if ( uLangMask & (1UL<<i) ) |
|
|
|
@@ -85,8 +85,7 @@ const CSphNamedInt & sphAotDictinfo ( int iLang ); |
|
|
|
|
|
/// create token filter that returns all morphological hypotheses |
|
|
/// NOTE, takes over wordforms from pDict, in AOT case they must be handled by the fitler |
|
|
class CSphTokenFilter; |
|
|
CSphTokenFilter * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask ); |
|
|
ISphTokenizer * sphAotCreateFilter ( ISphTokenizer * pTokenizer, CSphDict * pDict, bool bIndexExact, DWORD uLangMask ); |
|
|
|
|
|
/// free lemmatizers on shutdown |
|
|
void sphAotShutdown (); |
|
|