Kristian Bendiksen
89e940b1ea
Fix QProxyStyle memory leak in PdmUiTreeViewStyle creation
...
Address sanitizer detected a memory leak in QProxyStyle objects
created during GUI theme updates.
Problem: The updateGuiTheme() function was called multiple times (e.g., during
initialization) and repeatedly created new PdmUiTreeViewStyle objects for
every PdmUiTreeViewWidget without checking if the widget already had the
correct style set.
Root cause: Each call to updateGuiTheme() would:
1. Iterate through ALL widgets in the application
2. Create a new PdmUiTreeViewStyle for every tree view widget
3. Call setStyle() which should take ownership, but repeated calls
were causing memory leaks
Fix: Added a check to only create and set a new PdmUiTreeViewStyle if the
widget doesn't already have one. This prevents repeatedly creating new
styles for the same widgets during multiple theme update calls.
The fix uses dynamic_cast to check if the current style is already a
PdmUiTreeViewStyle before creating a new one.
2025-09-04 09:04:30 +02:00
..
2025-03-11 09:06:07 +01:00
2025-07-30 13:39:02 +02:00
2022-05-23 14:25:53 +02:00
2021-01-11 15:27:45 +01:00
2025-03-21 14:09:34 +01:00
2025-05-19 14:31:30 +02:00
2023-08-07 13:38:27 +02:00
2021-01-11 15:27:45 +01:00
2025-03-10 16:56:16 +01:00
2022-06-21 14:40:54 +02:00
2024-04-15 16:10:43 +02:00
2021-01-11 15:27:45 +01:00
2023-08-07 13:38:27 +02:00
2021-01-11 15:27:45 +01:00
2022-05-09 15:36:27 +02:00
2022-05-09 15:36:27 +02:00
2025-03-28 13:54:23 +01:00
2021-04-15 08:00:07 +02:00
2025-03-10 17:58:59 +01:00
2021-01-11 15:27:45 +01:00
2025-02-14 09:35:28 +01:00
2025-02-14 09:35:28 +01:00
2024-11-15 12:12:59 +01:00
2023-10-03 09:04:08 +02:00
2023-10-11 08:54:52 +02:00
2023-10-11 08:54:52 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2025-03-07 14:41:38 +01:00
2023-03-08 18:18:03 +01:00
2025-03-10 16:56:16 +01:00
2021-01-11 15:27:45 +01:00
2025-05-19 12:51:52 +02:00
2025-03-31 08:02:00 +02:00
2025-08-29 15:12:32 +02:00
2025-03-12 12:55:20 +01:00
2023-08-07 13:38:27 +02:00
2023-02-26 10:48:40 +01:00
2023-02-26 10:48:40 +01:00
2021-01-11 15:27:45 +01:00
2023-02-26 10:48:40 +01:00
2021-01-11 15:27:45 +01:00
2025-01-29 01:36:29 +01:00
2023-01-18 14:42:33 +01:00
2023-09-27 10:16:37 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2023-02-26 10:48:40 +01:00
2024-10-14 09:08:47 +02:00
2024-10-14 09:08:47 +02:00
2023-09-27 10:16:37 +02:00
2023-02-26 10:48:40 +01:00
2023-08-07 13:38:27 +02:00
2021-01-11 15:27:45 +01:00
2025-03-10 16:56:16 +01:00
2023-09-15 13:59:58 +02:00
2023-08-07 13:38:27 +02:00
2024-04-16 14:22:15 +02:00
2025-09-04 09:04:30 +02:00
2023-04-14 14:07:45 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2025-06-11 15:43:53 +02:00
2025-01-28 11:20:32 +01:00
2024-09-12 09:16:28 +02:00
2024-09-12 09:16:28 +02:00
2025-03-17 06:54:53 +01:00
2023-06-02 10:47:10 +02:00
2025-03-14 14:03:09 +01:00
2025-03-14 14:03:09 +01:00
2024-01-30 14:34:33 +01:00
2022-10-31 13:26:26 +01:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2022-10-31 13:26:26 +01:00
2022-11-25 08:59:10 +01:00
2024-09-16 09:49:22 +02:00
2023-04-20 16:04:59 +02:00
2025-03-26 21:50:39 +01:00
2025-04-10 14:39:56 +02:00
2024-09-19 12:47:29 +02:00
2023-02-26 10:48:40 +01:00
2025-08-22 16:10:04 +02:00
2023-06-06 12:51:37 +02:00
2025-08-22 16:10:04 +02:00
2025-03-10 16:56:16 +01:00
2023-08-07 13:38:27 +02:00
2021-01-11 15:27:45 +01:00
2023-08-07 13:38:27 +02:00
2023-02-26 10:48:40 +01:00
2025-07-03 08:35:10 +02:00
2025-07-03 08:35:10 +02:00
2023-09-20 13:58:22 +02:00
2023-09-20 13:58:22 +02:00
2023-02-26 10:48:40 +01:00
2025-02-18 11:04:40 +01:00
2022-10-18 07:22:56 +02:00
2025-03-10 16:56:16 +01:00
2025-03-10 16:56:16 +01:00
2023-02-26 10:48:40 +01:00
2023-04-13 07:05:53 +02:00
2025-05-19 14:31:30 +02:00
2025-06-11 15:43:53 +02:00
2024-09-09 14:32:32 +02:00
2025-07-25 08:42:13 +02:00
2025-07-25 08:42:13 +02:00
2024-03-07 19:45:43 +01:00
2021-01-11 15:27:45 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2023-07-06 08:40:09 +02:00
2023-11-27 13:14:16 +01:00
2023-02-26 10:48:40 +01:00
2022-07-07 12:03:02 +02:00
2024-04-16 14:22:15 +02:00
2022-03-11 13:24:01 +01:00
2024-07-05 09:31:16 +02:00
2024-04-16 14:22:15 +02:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2023-04-13 07:05:53 +02:00
2021-04-15 08:00:07 +02:00
2025-02-18 11:04:40 +01:00
2023-02-26 10:48:40 +01:00
2023-02-26 10:48:40 +01:00
2022-03-14 09:18:48 +01:00
2023-08-07 13:38:27 +02:00
2022-08-18 08:50:16 +02:00
2023-08-07 13:38:27 +02:00
2023-02-26 10:48:40 +01:00
2023-09-27 10:16:37 +02:00
2023-06-28 21:46:11 +02:00
2025-02-18 11:04:40 +01:00
2025-02-18 11:04:40 +01:00
2022-01-17 13:14:21 +01:00
2022-01-17 13:14:21 +01:00
2023-08-07 13:38:27 +02:00
2023-02-26 10:48:40 +01:00
2023-11-13 13:29:07 +01:00
2022-11-01 08:00:51 +01:00
2023-06-28 21:46:11 +02:00
2023-06-28 21:46:11 +02:00
2025-03-10 16:56:16 +01:00
2023-03-03 15:21:01 +01:00
2023-02-26 10:48:40 +01:00
2022-04-04 12:10:20 +02:00
2025-07-25 08:42:13 +02:00
2025-03-14 13:44:00 +01:00
2023-09-15 13:59:58 +02:00
2023-09-15 13:59:58 +02:00
2023-09-15 13:59:58 +02:00
2022-04-04 12:10:20 +02:00
2021-01-11 15:27:45 +01:00
2025-03-10 16:56:16 +01:00
2025-03-10 16:56:16 +01:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-08-27 14:22:11 +02:00
2025-02-25 14:58:33 +01:00
2022-11-10 07:21:41 +01:00
2022-07-07 12:03:02 +02:00
2025-02-25 14:58:33 +01:00
2025-02-25 14:58:33 +01:00
2025-08-27 14:22:11 +02:00
2023-02-26 10:48:40 +01:00
2023-08-07 13:38:27 +02:00
2021-01-11 15:27:45 +01:00
2023-08-07 13:38:27 +02:00
2023-06-12 15:44:39 +02:00
2023-06-12 11:56:48 +02:00
2023-06-12 11:56:48 +02:00
2025-05-19 17:40:39 +02:00
2025-02-14 09:35:28 +01:00
2023-08-07 13:38:27 +02:00
2024-04-16 14:22:15 +02:00
2025-02-13 15:12:24 +01:00
2025-07-30 07:16:29 +02:00
2022-04-19 12:34:40 +02:00
2023-08-07 13:38:27 +02:00
2022-03-21 11:31:25 +01:00
2025-05-08 07:27:42 +02:00
2025-04-11 18:34:32 +02:00
2023-11-27 13:14:16 +01:00
2023-02-26 10:48:40 +01:00
2025-07-23 15:58:56 +02:00
2024-10-14 08:53:28 +02:00
2025-04-01 14:51:13 +02:00
2025-03-14 14:03:09 +01:00
2024-10-22 07:28:43 +02:00
2024-07-30 08:55:12 +02:00
2025-05-16 07:53:46 +02:00
2025-02-13 15:12:24 +01:00
2024-10-28 13:09:18 +01:00
2023-02-26 10:48:40 +01:00
2025-03-10 16:56:16 +01:00
2025-03-10 16:56:16 +01:00
2024-10-28 13:09:18 +01:00
2022-03-14 09:18:48 +01:00
2023-02-26 10:48:40 +01:00
2021-04-15 08:00:07 +02:00
2025-03-21 14:09:34 +01:00
2021-01-11 15:27:45 +01:00
2023-08-07 13:38:27 +02:00
2023-04-13 07:05:53 +02:00
2024-09-16 09:49:22 +02:00
2024-09-16 09:49:22 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2025-04-09 07:21:54 +02:00
2023-02-20 08:18:08 +01:00
2023-09-27 10:16:37 +02:00
2021-01-12 20:51:57 +01:00
2025-08-10 20:11:18 +02:00
2025-03-10 16:56:16 +01:00
2025-07-04 16:57:41 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00
2024-04-16 14:22:15 +02:00
2022-01-17 13:14:21 +01:00
2024-09-02 13:58:00 +02:00
2024-09-02 13:58:00 +02:00
2025-02-05 17:19:01 +01:00
2023-02-23 15:08:22 +01:00
2024-10-31 15:08:59 +01:00
2024-05-13 15:45:55 +02:00
2021-01-11 15:27:45 +01:00
2021-01-11 15:27:45 +01:00