[vlc-commits] Qt4: don't keep reference to toAscii() temporary array

Rémi Denis-Courmont git at videolan.org
Sat Jun 18 11:59:57 CEST 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 18 12:57:56 2011 +0300| [68c97e840fd70e0306db616a407d30e56afe2e94] | committer: Rémi Denis-Courmont

Qt4: don't keep reference to toAscii() temporary array

(See also previous commit)
(cherry picked from commit cf190075bda0c39e2a203104d9095c450e283def)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=68c97e840fd70e0306db616a407d30e56afe2e94
---

 modules/gui/qt4/components/extended_panels.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 9c0d19a..3fcbd2a 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1026,13 +1026,12 @@ void Equalizer::setCoreBands()
         band_texts[i]->setText( band_frequencies[i] + "\n" + val + "dB" );
         values += " " + val;
     }
-    const char *psz_values = values.toAscii().constData();
 
     aout_instance_t *p_aout = THEMIM->getAout();
     if( p_aout )
     {
         //delCallbacks( p_aout );
-        var_SetString( p_aout, "equalizer-bands", psz_values );
+        var_SetString( p_aout, "equalizer-bands", qtu( values ) );
         //addCallbacks( p_aout );
         vlc_object_release( p_aout );
     }



More information about the vlc-commits mailing list