summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-09-06 15:43:36 +0200
committerIvan Solovev <ivan.solovev@qt.io>2022-09-07 10:13:30 +0200
commit14415af84bfe0a8bec28bb196302bac0560eb4a8 (patch)
tree6d189cca130aee445535d31b0397906279de6870 /examples
parent99e3b2d5fff1781294091b9cd482f266c7ba563c (diff)
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/serialbus/can/connectdialog.ui1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/serialbus/can/connectdialog.ui b/examples/serialbus/can/connectdialog.ui
index 0ae3430..97e6e00 100644
--- a/examples/serialbus/can/connectdialog.ui
+++ b/examples/serialbus/can/connectdialog.ui
@@ -254,7 +254,6 @@
<property name="title">
<string>CAN Interface Properties</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout"/>
</widget>
</item>
</layout>