So if I just go ahead and replace it... KeyValues* kv1 = new KeyValues( "OnSomething", "do", "something" ); pSth->SetCommand( kv1 ); /*...*/ KeyValues* kv2 = new KeyValues( "OnSomethingElse", "do", "somethingElse" ); pSth->SetCommand( kv2 );
the kv1 produces a memory leak? how to avoid that? (any KeyValues* GetCommand(), or void DeleteCommand()??) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders