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 31bbc0f..85af105 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