[network/krdc] rdp: Additional fix

Fabio Bas <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ada0dd1a9d04180dec597d867d663abd8987d80f by Fabio Bas.
Committed on 17/07/2026 at 10:20.
Pushed by ctrlaltca into branch 'master'.

Additional fix

M  +3    -2    rdp/rdpcliprdr.cpp

https://invent.kde.org/network/krdc/-/commit/ada0dd1a9d04180dec597d867d663abd8987d80f

diff --git a/rdp/rdpcliprdr.cpp b/rdp/rdpcliprdr.cpp
index 9e24db89..2d716bf2 100644
--- a/rdp/rdpcliprdr.cpp
+++ b/rdp/rdpcliprdr.cpp
@@ -15,8 +15,9 @@ static void cliprdr_format_free(CLIPRDR_FORMAT *formats, size_t count)
     if (!formats)
         return;
 
-    for (size_t x = 0; x < count; x++)
-        free(formats->formatName);
+    for (size_t x = 0; x < count; x++) {
+        free(formats[x].formatName);
+    }
 
     delete[] formats;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.