Commit 6b6f7db3 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix memory leak


We can't have the ExpressionVariableReference/TemplateParameterReference
holding a Ptr of VariableDeclaration because the VariableDeclaration
holds a Ptr of them (in the references member) so they were referencing
eachother and the reference count never reaches 0.

Task-number: QTBUG-32745
Change-Id: I4cda6d9eccad123984f4ad35db3e56da01d4d5b1
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@qt.io>
Showing with 15 additions and 15 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment