From 640afe96b1b2f53d579b93c46d5d9e760502daa9 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 29 Oct 2016 18:13:00 +0000 Subject: coding style fixes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6825 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/windowsystem.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/plugins/Ui/skinned/windowsystem.cpp') diff --git a/src/plugins/Ui/skinned/windowsystem.cpp b/src/plugins/Ui/skinned/windowsystem.cpp index 4fb1aec1e..a971214b3 100644 --- a/src/plugins/Ui/skinned/windowsystem.cpp +++ b/src/plugins/Ui/skinned/windowsystem.cpp @@ -86,9 +86,8 @@ QString WindowSystem::netWindowManagerName() } XFree(retValue2); - retValue2 = NULL; - retValue2 = getWindowProperty(win, "_NET_WM_NAME"); + XFree(retValue1); if (retValue2 == NULL) return QString(); @@ -156,7 +155,6 @@ unsigned char* WindowSystem::getWindowProperty(WId win, const char* prop) if (reqAtom == None) return NULL; - int retCheck = None; Atom retType = None; int retFormat = 0; unsigned long retItems = 0UL; @@ -164,7 +162,7 @@ unsigned char* WindowSystem::getWindowProperty(WId win, const char* prop) unsigned char* retValue = NULL; // Check if the property exists and calculate its length. - retCheck = XGetWindowProperty(dsp, win, + int retCheck = XGetWindowProperty(dsp, win, reqAtom, 0L, 0L, False, AnyPropertyType, &retType, &retFormat, &retItems, &retMoreBytes, &retValue); -- cgit v1.2.3-13-gbd6f