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



/trunk/KDE/kdenetwork/kopete/libkopete/kopetecommandhandler.cpp
<http://reviewboard.kde.org/r/1004/#comment979>

    delete will not change the pointer address, no?
    I guess processMap will not try to deref proc, only use the pointer address 
to remove from the map.
    will make no difference IMO.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp
<http://reviewboard.kde.org/r/1004/#comment977>

    conn_current is a local variable and not used in any place later in this 
function (there is a return just after the delete)



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp
<http://reviewboard.kde.org/r/1004/#comment972>

    the whole code here is commented out and should be dropped.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp
<http://reviewboard.kde.org/r/1004/#comment973>

    ctx is a local variable assigned in the line 411 (just above). I think 
there is no point in assigning zero to this pointer.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp
<http://reviewboard.kde.org/r/1004/#comment976>

    I think pendingMsg.message can't be referenced after this point because it 
is removed from the linked list.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp
<http://reviewboard.kde.org/r/1004/#comment978>

    same situation here.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmlibmsn.cpp
<http://reviewboard.kde.org/r/1004/#comment975>

    ctx is a local variable and not used in any place before this point in this 
function.



/trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmlibmsn.cpp
<http://reviewboard.kde.org/r/1004/#comment974>

    this code is commented out and should be dropped.


- Tiago


On 2009-07-13 18:50:24, Lamarque Souza wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1004/
> -----------------------------------------------------------
> 
> (Updated 2009-07-13 18:50:24)
> 
> 
> Review request for Kopete.
> 
> 
> Summary
> -------
> 
> Initialise deleted pointers to 0L. Throughout all Kopete source code pointers 
> are deleted and not initialized, grep -r 'delete '  $(find \( -name "*.cpp" 
> -o -name "*.h" \) ) | wc returns 1105 lines, I can do a rough estimation of 
> at least half of those lines do not reinitialize pointers. Althouth 
> reinitialing pointers are not always necessary in some cases it does is 
> necessary and by what I have seen there are such places in Kopete's source 
> code. Kopete::CommandHandler::slotExecFinished even passed one deleted 
> pointer to a function, which seems really wrong to me, it should delete the 
> pointer after calling the function, not before. To illustrate the problem 
> assume a is a class member pointer:
> 
> delete a; // in one class method
> 
> // In another class method:
> if (a) // the result will the true even though a is deleted
>         do a->"something" // this can crash the application
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdenetwork/kopete/kopete/chatwindow/chatview.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp 993925 
>   
> /trunk/KDE/kdenetwork/kopete/kopete/chatwindow/kopetechatwindowstylemanager.cpp
>  993925 
>   /trunk/KDE/kdenetwork/kopete/kopete/config/accounts/kopeteaccountconfig.cpp 
> 993925 
>   
> /trunk/KDE/kdenetwork/kopete/kopete/config/appearance/layout/TokenDropTarget.cpp
>  993925 
>   /trunk/KDE/kdenetwork/kopete/kopete/kopetewindow.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/kopete/statusmenu/kopetestatusgroupaction.cpp 
> 993925 
>   /trunk/KDE/kdenetwork/kopete/kopete/statusmenu/kopetestatusrootaction.cpp 
> 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccountmanager.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopetechatsession.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopetecommandhandler.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopetecontact.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopeteidentitymanager.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopeteproperty.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/kopetewalletmanager.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/private/kopeteviewmanager.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/ui/avatarselectorwidget.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/libkopete/ui/kopetelistviewitem.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmchatmanager.cpp 993925 
>   /trunk/KDE/kdenetwork/kopete/protocols/wlm/wlmlibmsn.cpp 993925 
> 
> Diff: http://reviewboard.kde.org/r/1004/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Lamarque
> 
>

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to