diff options
Diffstat (limited to 'gusb/gusb-interface.c')
-rw-r--r-- | gusb/gusb-interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gusb/gusb-interface.c b/gusb/gusb-interface.c index e08409c..414b1fc 100644 --- a/gusb/gusb-interface.c +++ b/gusb/gusb-interface.c @@ -40,7 +40,8 @@ g_usb_interface_finalize(GObject *object) GUsbInterface *self = G_USB_INTERFACE(object); g_bytes_unref(self->extra); - g_ptr_array_unref(self->endpoints); + if (self->endpoints != NULL) + g_ptr_array_unref(self->endpoints); G_OBJECT_CLASS(g_usb_interface_parent_class)->finalize(object); } |