File kdebase3-pclose-after-destroy.patch of Package kdebase3

diff -Naru kdebase-3.5.10_orig/kcontrol/info/info.cpp kdebase-3.5.10/kcontrol/info/info.cpp
--- kdebase-3.5.10_orig/kcontrol/info/info.cpp	2007-05-14 16:55:37.000000000 +0900
+++ kdebase-3.5.10/kcontrol/info/info.cpp	2022-04-21 20:22:16.415860883 +0900
@@ -444,6 +444,7 @@
 	return 0;
     }
 
+    { // ensure to call pclose after the destructor
     QTextStream t(pipe, IO_ReadOnly);
 
     while (!t.atEnd()) {
@@ -452,6 +453,7 @@
 		continue;
        	olditem = new QListViewItem(lBox, olditem, s);
     }
+    }
 
     pclose(pipe);
 
openSUSE Build Service is sponsored by