Kate crash on exit - windows only?
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Sat Mar 1 20:50:40 GMT 2008
Christian Ehrlicher schrieb:
> David Faure schrieb:
>> On Thursday 28 February 2008, Christian Ehrlicher wrote:
>>> Hi,
>>>
>>> Kate crashes on exit due to weird (?) unloading behaviour. I can see
>>> that qt_call_post_routines() is already executed and
>>> KServiceTypeFactory is destroyed. Later
>>> QObjectCleanupHandler/KPluginFactory is destroyed and katepart lib
>>> gets unloaded. During the unload, KatePartPluginManager dtor is executed
>>
>> This is a memory leak in the application. This the katepart
>> pluginmanager should
>> be deleted much before QObjectCleanupHandler triggers.
>>
> Ok, thx for this information - I'll see how to fix it and post a patch
>
Here a fix.
kdelibs_kate.patch is the important one - it destroys the KPluginFactory
(and unloads libktexteditor) before Q(Core)Application is gone. This
solves my crash on windows.
kdesdk.patch adds some delete statements to properly clean up some objects.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_kate.patch
Type: text/x-diff
Size: 926 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080301/1fb33849/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdesdk.patch
Type: text/x-diff
Size: 921 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080301/1fb33849/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080301/1fb33849/attachment.sig>
More information about the kde-core-devel
mailing list