Review Request: Fix ReadOnlyPart crash for non-local files

Aaron Seigo aseigo at kde.org
Sun Apr 5 20:37:40 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/524/#review830
-----------------------------------------------------------


shouldn't the job emit the result signal before being autodeleted in this case? seems like a bug in kio to me ...

- Aaron


On 2009-04-04 18:57:16, Raphael Kubo da Costa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/524/
> -----------------------------------------------------------
> 
> (Updated 2009-04-04 18:57:16)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> As the listed bugs say, when a URL is passed to a program and its ReadOnlyPart opens it, the program crashes when closed if the transfer is stoppped before it's finished. Calling "ark www.foo.bar/baz.zip" or "okular www.foo.bar/baz.pdf" both present this behaviour.
> 
> This patch makes the registered FileCopyJob not autodelete itself when the transfer is stopped, thus making ReadOnlyPart::abortLoad not access a dead object.
> 
> 
> This addresses bugs 186722, 186980, 187538, and 188231.
>     https://bugs.kde.org/show_bug.cgi?id=186722
>     https://bugs.kde.org/show_bug.cgi?id=186980
>     https://bugs.kde.org/show_bug.cgi?id=187538
>     https://bugs.kde.org/show_bug.cgi?id=188231
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/kparts/part.cpp 948889 
> 
> Diff: http://reviewboard.kde.org/r/524/diff
> 
> 
> Testing
> -------
> 
> Both Ark and Okular stopped crashing here.
> 
> 
> Thanks,
> 
> Raphael
> 
>





More information about the kde-core-devel mailing list