Home GnuPG

qt: Fix use of dangling pointer in QApplication

Description

qt: Fix use of dangling pointer in QApplication

* qt/main.cpp (main): Use a new variable for argc that stays
valid.

The QApplication constructor takes argc as a reference and the referenced
integer has to stay alive for at least as long as the QApplication.

Based on a Patch from: Fabian Vogt <fvogt@suse.com>
Thanks!

Details

Provenance
aheineckeAuthored on Jul 25 2019, 2:20 PM
Parents
rPdad35d65f05e: curses: Fix more.
Branches
Unknown
Tags
Unknown
Tasks
T4658: Fix a dangling pointer in pinentry's qt/main.cpp