[Spice-devel] [spice-gtk] Fix build when usbredir is disabled

Christophe Fergeau cfergeau at redhat.com
Wed Jun 13 05:41:32 PDT 2012


I broke it with my leak fixes
---
 gtk/usb-device-manager.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
index a3e6ff9..25cb14a 100644
--- a/gtk/usb-device-manager.c
+++ b/gtk/usb-device-manager.c
@@ -233,10 +233,10 @@ static void spice_usb_device_manager_finalize(GObject *gobject)
         libusb_exit(priv->context);
     if (priv->event_thread)
         g_thread_join(priv->event_thread);
+    free(priv->auto_conn_filter_rules);
 #endif
 
     g_free(priv->auto_connect_filter);
-    free(priv->auto_conn_filter_rules);
 
     /* Chain up to the parent class */
     if (G_OBJECT_CLASS(spice_usb_device_manager_parent_class)->finalize)
-- 
1.7.10.2



More information about the Spice-devel mailing list