leak--: disconnect signal

svn path=/trunk/KDE/kdelibs/; revision=1058175
This commit is contained in:
Igor Trindade Oliveira 2009-12-04 02:46:30 +00:00
parent a1b48efa16
commit f10d58bb53

View File

@ -29,6 +29,7 @@ void SlideAnimation::setWidgetToAnimate(QGraphicsWidget *widget)
{
Animation::setWidgetToAnimate(widget);
if (m_animation) {
disconnect(m_animation, SIGNAL(finished()), this, SIGNAL(finished()));
delete m_animation;
}