aboutsummaryrefslogtreecommitdiff
path: root/security/kleopatra/files/patch-src_crypto_recipient.cpp
blob: 7e5efab0e4531f494bc94608e3d8555c301ab9f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Submitted upstream: https://invent.kde.org/pim/kleopatra/-/merge_requests/205.
To remove when updating to next release.

--- src/crypto/recipient.cpp.orig	2024-02-11 04:00:57 UTC
+++ src/crypto/recipient.cpp
@@ -85,7 +85,7 @@ void Recipient::detach()
 
 void Recipient::detach()
 {
-    if (d && !d.unique()) {
+    if (d && d.use_count() != 1) {
         d.reset(new Private(*d));
     }
 }