hi all.

Index: licq/plugins/qt-gui/src/userbox.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/userbox.cpp,v
retrieving revision 1.166
diff -r1.166 userbox.cpp
183c183,185
<
---
>   if (this == v->barOffline || this == v->barOnline)
>     return;
>


i don't know exactly if i can somehow apply patches in licq cvs, so i'm 
posting this diff at file plugins/qt-gui/src/userbox.cpp. Let me explain:

the bug:
When there is only one user at the contact list, and i delete it or it becomes 
online, the CUserViewItem representing him is deleted. If it is the only user 
offline, the "v->barOffline" is also deleted. This causes a stack overflow, 
because when we delete barOffline, it will keep deleting itself forever. 

The patch i'm posting correct this, and actually it keeps correct the 
v->numOffline and v->numOnline.

Please, give me some feedback about this. I think it is ok, but i dont know 
the system at all. If anybody has already worked on that, or if i should have 
posted this somewhere else, please, let me know.

thanks all

ass. Edans Sandes


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to