[vlc-commits] skins2: fix a small memory leak and downgrade from err to dbg

Erwan Tulou git at videolan.org
Fri Feb 17 16:03:22 CET 2012


vlc/vlc-2.0 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Feb 17 15:04:33 2012 +0100| [d12a9c6e42ecd53a4a27335bdafe719b80391c2a] | committer: Jean-Baptiste Kempf

skins2: fix a small memory leak and downgrade from err to dbg

This last occurrence of MSG_ERR led to a memory leak.
In addition, avoid spamming the logs. A debug message is enough.
(cherry picked from commit 61e145ca81f83a23c188b4dfa0bb62d4fd4acb6a)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d12a9c6e42ecd53a4a27335bdafe719b80391c2a
---

 modules/gui/skins2/x11/x11_display.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/skins2/x11/x11_display.cpp b/modules/gui/skins2/x11/x11_display.cpp
index d259556..ac02312 100644
--- a/modules/gui/skins2/x11/x11_display.cpp
+++ b/modules/gui/skins2/x11/x11_display.cpp
@@ -63,7 +63,7 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
     m_pDisplay = XOpenDisplay( NULL );
     if( m_pDisplay == NULL )
     {
-        MSG_ERR( "Cannot open display" );
+        msg_Dbg( pIntf, "Cannot open X display" );
         return;
     }
 



More information about the vlc-commits mailing list