Skip to content
  • Nikolai Kosjar's avatar
    C++: Fix use-after-free crash when handling auto expressions · fe0a0918
    Nikolai Kosjar authored
    
    
    The Control of the Document "exprDoc" in ResolveExpression::visit(
    SimpleNameAST*ast) owns names that are passed on further as part of the
    LookupItems. However, the life time of that Document and thus the
    Control ends in that function.
    
    Fix by using the appropriate Control object.
    
    Task-number: QTCREATORBUG-16731
    Change-Id: I5a7af0a67613fff79f7e07865801585c13bb9b45
    Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
    fe0a0918