From 14415af84bfe0a8bec28bb196302bac0560eb4a8 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Tue, 6 Sep 2022 15:43:36 +0200 Subject: CAN example: fix memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- examples/serialbus/can/connectdialog.ui | 1 - 1 file changed, 1 deletion(-) 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 @@ CAN Interface Properties - -- cgit v1.2.3