[Interest] QSettings: no settings file
Sensei
senseiwa at gmail.com
Mon Feb 24 13:25:23 CET 2014
On 19/02/14 17:12, Thiago Macieira wrote:
> Em qua 19 fev 2014, às 16:28:59, Sensei escreveu:
>> instance_->settings_ = new QSettings(getPreferences() +
>> "/0com.example.app", QSettings::NativeFormat);
>>
>>
>> Am I missing something?
>
> Where is that QSettings object destroyed? If it gets leaked, it might never
> save anything.
>
> Also, you should probably rewrite it without "new".
You were definitely right, it was leaking!
Thanks!
More information about the Interest
mailing list