keyvalues data objects are deleted when the button objects are destructed:

Button::~Button()
{
        if (_actionMessage)
        {
                _actionMessage->deleteThis();
        }
}

On Wed, Apr 23, 2008 at 4:59 AM, Piotr Siódmak <[EMAIL PROTECTED]> wrote:
> Take a look at the following code:
>
>  KeyValues* kv = new KeyValues( "myMessage", "p1", 1, "p2", 2 );
>  m_pInventoryButtons[i]->SetCommand( kv );
>
>  Are the KeyValues managed by the panel (deleted when changed or when panel 
> is deleted) or do I have to take care of deleting them?
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to