View Issue Details

IDProjectCategoryView StatusLast Update
0017645ScribusInternalpublic2025-10-11 14:59
Reportertropion Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.7.1.svn 
Fixed in Version1.7.1.svn 
Summary0017645: Hruler::m_contextMenu should be initialized with a parent QObject
DescriptionNever deleted:

Hruler::m_contextMenu
Hruler::rulerGesture

Vruler::rulerGesture

RulerMover::m_rulerGesture
TagsNo tags attached.
PatchNo

Activities

jghali

2025-10-11 00:14

administrator   ~0053058

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.

ale

2025-10-11 07:16

manager   ~0053059

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).

tropion

2025-10-11 08:53

reporter   ~0053060

Thank you. I've learned a few important things in the last hours.
Sorry for wasting your time with this.

Issue History

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