Fix memory leak in windows vista style
authorJian Liang <jianliang79@gmail.com>
Fri, 11 Jan 2013 05:50:58 +0000 (13:50 +0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 11 Jan 2013 20:04:09 +0000 (21:04 +0100)
commitd41fbea2ba84959dd860f2a9c651e7eea260b008
treeb39bc15d721cc859051c0291cf0822e58d9c27a7
parent7e91b5a2bc51daa888985835fda3f789654afe0b
Fix memory leak in windows vista style

Introduce a function named deleteClonedAnimationStyleOption() in
qwindowsvistastyle.cpp to delete style option cloned by
clonedAnimationStyleOption() to prevent object leak which is hold by the
actual style option object.

Change-Id: I1afd95ddab237059ce3460ac0b52a65de102eaa5
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/widgets/styles/qwindowsvistastyle.cpp