Don't leave nvidia-settings zombies
authorqqp <root@qqp.ca>
Fri, 23 May 2014 19:59:20 +0000 (12:59 -0700)
committerJonathan Marshall <jmarshall@never.you.mind>
Wed, 11 Jun 2014 00:08:42 +0000 (12:08 +1200)
xbmc/video/VideoReferenceClock.cpp

index 0b3950a..1dd7e00 100644 (file)
@@ -480,8 +480,8 @@ bool CVideoReferenceClock::ParseNvSettings(int& RefreshRate)
   else if (buffpos > (int)sizeof(Buff) - 1)
   {
     buffpos = sizeof(Buff) - 1;
-    pclose(NvSettings);
   }
+  pclose(NvSettings);
   Buff[buffpos] = 0;
 
   CLog::Log(LOGDEBUG, "CVideoReferenceClock: output of %s: %s", NVSETTINGSCMD, Buff);