Retreiving VCard and memory management
From: Dmitry Nezhevenko <dion@xxxxxxxxx>
Date: Wed, 06 Aug 2008 21:40:56 +0200
Hi guys. I'm currently experiencing memory leak in some gloox-based
application. Valgrind shows, that it's because VCard instances are not
removed by gloox. 

Is it correct behaviour, that gloox don't remove them? As far as I
remember, there was some rule that gloox will call delete itself for all
pointers (I'm about *Handler classes, like PresenceHandler,
MessageHandler, etc.). Is it bug or feature (c)? Should I do "delete" in
my VCardHandler and consider memory leak as gloox bug? 
Will this behaviour be changed in future?

Current code from VCardManager (line number is valid for 0.9 branch):

    114: (*it).second->handleVCard( stanza->from(), new VCard( v ) );

-- 
WBR, Dmitry

Attachment: signature.asc
Description: Digital signature

-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx