fixed memory leak in voip plugin

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8303 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-05-27 12:07:07 +00:00
parent 9fc5f01d87
commit 3db9655c56

View File

@ -371,7 +371,7 @@ void VOIPChatWidgetHolder::addAudioData(const RsPeerId &peer_id, QByteArray* arr
) { ) {
QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect(audioListenToggleButton); QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect(audioListenToggleButton);
audioCaptureToggleButton->setGraphicsEffect(effect); audioCaptureToggleButton->setGraphicsEffect(effect);
QPropertyAnimation *anim = new QPropertyAnimation(effect, "opacity"); QPropertyAnimation *anim = new QPropertyAnimation(effect, "opacity", effect);
anim->setStartValue(1); anim->setStartValue(1);
anim->setKeyValueAt(0.5,0); anim->setKeyValueAt(0.5,0);
anim->setEndValue(1); anim->setEndValue(1);