]> git.sesse.net Git - vlc/commitdiff
skins2: fix a small memory leak and downgrade from err to dbg
authorErwan Tulou <erwan10@videolan.org>
Fri, 17 Feb 2012 14:04:33 +0000 (15:04 +0100)
committerErwan Tulou <erwan10@videolan.org>
Fri, 17 Feb 2012 14:34:09 +0000 (15:34 +0100)
This last occurrence of MSG_ERR led to a memory leak.
In addition, avoid spamming the logs. A debug message is enough.

modules/gui/skins2/x11/x11_display.cpp

index d259556d890dcf1b718001409ea45e8ab27ea93d..ac02312cf7994210a7adca806d3ab0faea3eb829 100644 (file)
@@ -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;
     }