[Kde-pim] Re: Review Request: remove 4 memory leaks and one possible null dereference

Kevin Krammer kevin.krammer at gmx.at
Fri Jun 17 09:29:46 BST 2011


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



kresources/kabc/resourceakonadi_p.cpp
<http://git.reviewboard.kde.org/r/101647/#comment3234>

    the operation above creates a new distribution list. so deleting it right afterwards is wrong.
    What was the reason for this change?



migration/kmail/kmailmigrator.cpp
<http://git.reviewboard.kde.org/r/101647/#comment3235>

    Not strictly necessary, the interface has a QObject parent and will be deleted when the parent is.



migration/kmail/kmailmigrator.cpp
<http://git.reviewboard.kde.org/r/101647/#comment3236>

    see above



migration/kmail/kmailmigrator.cpp
<http://git.reviewboard.kde.org/r/101647/#comment3237>

    see above



resources/kabc/kabcresource.cpp
<http://git.reviewboard.kde.org/r/101647/#comment3238>

    This looks correct, the setName() should really be in the if's scope. not sure about the blockSignals though.
    
    There seems to be a similar problem in the KCal plugin. Maybe you can remove this change from here and create a new request with this and the respective change to kcal/kcalresource.cpp?


- Kevin


On June 16, 2011, 7:31 p.m., Jaime Torres Amate wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101647/
> -----------------------------------------------------------
> 
> (Updated June 16, 2011, 7:31 p.m.)
> 
> 
> Review request for KDEPIM.
> 
> 
> Summary
> -------
> 
> possible problems found by cppcheck.
> 
> 
> Diffs
> -----
> 
>   kresources/kabc/resourceakonadi_p.cpp 1cecdce 
>   migration/kmail/kmailmigrator.cpp 9f40421 
>   resources/kabc/kabcresource.cpp 926bac4 
> 
> Diff: http://git.reviewboard.kde.org/r/101647/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jaime Torres
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list