Fix QLocalePrivate object leaking
Set ref count to zero in QLocalePrivate::create() to avoid QLocalePrivate object leaking. Change-Id: I8948c27d59b2038266ab04c6113610b9b4481b45 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
b8673b8468
commit
403c46b9b7
@ -215,7 +215,7 @@ public:
|
|||||||
{
|
{
|
||||||
QLocalePrivate *retval = new QLocalePrivate;
|
QLocalePrivate *retval = new QLocalePrivate;
|
||||||
retval->m_data = data;
|
retval->m_data = data;
|
||||||
retval->ref.store(1);
|
retval->ref.store(0);
|
||||||
retval->m_numberOptions = numberOptions;
|
retval->m_numberOptions = numberOptions;
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user