Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-01-04 17:24:39 +0300
committerGitHub <noreply@github.com>2021-01-04 17:24:39 +0300
commitfe086b41d83d6f488b5b91167c806a87094e32c0 (patch)
treebb186c3885fbef88544e11cbd2abdf0fe95caca8 /CMakeLists.txt
parent391ea23d0fb08ecaae96a4902faa712b2d254a11 (diff)
parentcc3c8244996ffc37205f702ef451936cbb9e349c (diff)
Merge pull request #4671: FIX(client,ui): Crash by pressing Esc in nickname dialog
When having the dialog open that allows to set a custom nickname to another client (UserLocalNicknameDialog) pressing Esc would crash Mumble. This is due to the Esc key triggering the dialog's reject() function in which the dialog's smart-pointer object is removed from a global list and therefore goes out of scope. This results in the dialog getting deleted, but since this is done in a member function of the dialog, there is still code accessing the now deleted object (in Qt's internals) and this is causing the segmentation fault. The fix is to use a custom deleter function for the dialog pointer that instead of using delete on it, calls deleteLater() on it. Thus the deletion of the object is left to Qt which can then do it at a point at which it is done with it. As this is something that could get useful in other locations as well, the custom deleter function was outsourced into its own file. Fixes #4666
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions