diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 06cd7b5cf..612de521c 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -6106,8 +6106,10 @@ camera_get_config (Camera *camera, CameraWidget **window, GPContext *context) } } - if (!params->deviceinfo.DevicePropertiesSupported_len) + if (!params->deviceinfo.DevicePropertiesSupported_len) { + free (setprops); return GP_OK; + } /* Last menu is "Other", a generic property fallback window. */ gp_widget_new (GP_WIDGET_SECTION, _("Other PTP Device Properties"), §ion);