[Qt] TQtCaret mem leak

zeljko at holobit.net zeljko at holobit.net
Tue Jul 17 22:03:25 CEST 2007


Quoting Vincent Snijders <vsnijders at quicknet.nl>:

> zeljko at holobit.net schreef:
>> Seem that nobody is freeing GlobalCaret variable from QtCaret unit, so
>> it produces  mem leak.
>> So , should we create it with Application parameter as Owner instead
>> of nil, or call some destroy on app termination ?
>> I've just setted up Application as Owner, leak is gone ....
>> any ?
>>
>
> My first idea is in TQTWidgetSet.Destroy or TQTWidgetSet.AppTerminate.
>
> Who creates the GlobalCaret?

winapi eg. ShowCaret(). It's created only once during application  
lifetime (if any control asks about caret), and it's never deleted.



More information about the Qt mailing list