summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 00:22:41 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 00:22:41 +0100
commit299e90b418c1f97e05bdd40f5850a8fff847928b (patch)
tree582628b3ba3106efbbb44a41b6dbf10e695947fd /plugins/upd
parent1759dc27ca9ce0095fdc8ff53dc3728dfff78595 (diff)
close the handle before returning (XhmikosR and sansnom05)
Diffstat (limited to 'plugins/upd')
-rw-r--r--plugins/upd/upd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index c5ff8b84..0186ed3c 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -57,13 +57,11 @@ check_version ()
 			buffer[dwRead] = 0;
 		}
 		
-		return buffer;
-
 		InternetCloseHandle (hFile);
+		return buffer;
 	}
 	
 	InternetCloseHandle (hINet);
-
 	return "Unknown";
 }