Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37725312
en ru br
ALT Linux repos
S:0.0.2-alt3.qa1
5.0: 0.0.2-alt3
4.1: 0.0.2-alt2
4.0: 0.0.2-alt1.1

Group :: Graphical desktop/Window Maker
RPM: wmdiskmon

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: wmdiskmon-alt-src-memory_leak_fix.patch
Download


diff -ru wmdiskmon-0.0.1.orig/src/dockapp.c wmdiskmon-0.0.1/src/dockapp.c
--- wmdiskmon-0.0.1.orig/src/dockapp.c	2004-02-14 03:00:44 +0600
+++ wmdiskmon-0.0.1/src/dockapp.c	2006-01-28 19:27:27 +0600
@@ -132,9 +132,17 @@
 
     /* Set WindowTitle for AfterStep Wharf */
     stat = XStringListToTextProperty(&appname, 1, &title);
+    if (stat == 0) {
+        fprintf(stderr, "%s: can't convert string to text property structure!\n", argv[0]);
+        exit(1);
+    }
+
     XSetWMName(display, window, &title);
     XSetWMName(display, icon_window, &title);
 
+    /* php-coder: plug memory leak */
+    XFree(title.value);
+
     /* Set Command to start the app so it can be docked properly */
     XSetCommand(display, window, argv, argc);
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin