]> git.sesse.net Git - vlc/commitdiff
Doesn't unref the D-Bus connection if connection failed
authorRafaël Carré <funman@videolan.org>
Fri, 6 Apr 2007 20:31:52 +0000 (20:31 +0000)
committerRafaël Carré <funman@videolan.org>
Fri, 6 Apr 2007 20:31:52 +0000 (20:31 +0000)
src/libvlc-common.c

index 31bbc0f9cfad5963b13d3c15a3da70eae6a094a5..85af105b226e5dec9c967926bbb7f0513c70a7db 100644 (file)
@@ -697,7 +697,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
             }
         }
         /* we unreference the connection when we've finished with it */
-        dbus_connection_unref( p_conn );
+       if( p_conn ) dbus_connection_unref( p_conn );
     }
 #endif