CAN example: fix memory leak


For some reason the connectiondialog.ui form created a layout for a
custom CanBusDeviceInfoBox dialog. However this dialog already has its
own layout, so the layout created by ConnectionDialog was just hanging
around without being added to any class hierarchy, which resulted in a
memleak, as reported by ASAN.

Change-Id: Id77b06069a0c77799e6a856932eadee2d7312b39
Reviewed-by: André Hartmann <aha_1980@gmx.de>
commit14415af84bfe0a8bec28bb196302bac0560eb4a8
parent99e3b2d5fff1781294091b9cd482f266c7ba563c
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 7 Sep 2022 10:13:30 +0200