View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017645 | Scribus | Internal | public | 2025-10-10 08:47 | 2025-10-11 14:59 |
Reporter | tropion | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 1.7.1.svn | ||||
Fixed in Version | 1.7.1.svn | ||||
Summary | 0017645: Hruler::m_contextMenu should be initialized with a parent QObject | ||||
Description | Never deleted: Hruler::m_contextMenu Hruler::rulerGesture Vruler::rulerGesture RulerMover::m_rulerGesture | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
Hruler::rulerGesture, Vruler::rulerGesture, RulerMover::m_rulerGesture participate in the QObject system, so no leak here. However Hruler::m_contextMenu should be initialized with a parent QObject. |
|
Hi tropion Here you can read more about the memory management with Qt objects: https://www.qt.io/product/qt6/qml-book/ch17-qtcpp-qobject Sadly, I've never managed to get the linter to take it into account (but I have not tried that hard neither, since the projects I work on are full of other warnings, too... so I can't rely on a warning free state anyway). |
|
Thank you. I've learned a few important things in the last hours. Sorry for wasting your time with this. |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-10-10 08:47 | tropion | New Issue | |
2025-10-11 00:14 | jghali | Note Added: 0053058 | |
2025-10-11 07:16 | ale | Note Added: 0053059 | |
2025-10-11 08:53 | tropion | Note Added: 0053060 | |
2025-10-11 14:58 | jghali | Category | General => Internal |
2025-10-11 14:58 | jghali | Summary | Memory leaks => Hruler::m_contextMenu should be initialized with a parent QObject |
2025-10-11 14:59 | jghali | Assigned To | => jghali |
2025-10-11 14:59 | jghali | Status | new => resolved |
2025-10-11 14:59 | jghali | Resolution | open => fixed |
2025-10-11 14:59 | jghali | Fixed in Version | => 1.7.1.svn |