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);