mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 17:23:03 +01:00
Postfix for #7169 - fix crashes caught by the tests.
This commit is contained in:
parent
23f533e740
commit
4a890ea1b7
@ -38,8 +38,11 @@ namespace Firebird {
|
|||||||
template <>
|
template <>
|
||||||
inline void SimpleDelete<charset>::clear(charset* cs)
|
inline void SimpleDelete<charset>::clear(charset* cs)
|
||||||
{
|
{
|
||||||
Firebird::IntlUtil::finiCharset(cs);
|
if (cs)
|
||||||
delete cs;
|
{
|
||||||
|
Firebird::IntlUtil::finiCharset(cs);
|
||||||
|
delete cs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ static bool texttype_default_init(texttype* tt,
|
|||||||
//const ASCII* configInfo)
|
//const ASCII* configInfo)
|
||||||
{
|
{
|
||||||
AutoPtr<charset> cs(FB_NEW charset);
|
AutoPtr<charset> cs(FB_NEW charset);
|
||||||
memset(&cs, 0, sizeof(cs));
|
memset(cs, 0, sizeof(*cs));
|
||||||
|
|
||||||
// test if that ICU charset exist
|
// test if that ICU charset exist
|
||||||
if (!CSICU_charset_init(cs, charSetName))
|
if (!CSICU_charset_init(cs, charSetName))
|
||||||
|
Loading…
Reference in New Issue
Block a user