From 3e9e96f6718b13c069138fb40f24f065ac03c6b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2017 18:33:09 +0300 Subject: unneeded calls of DestroyServiceFunction() removed --- plugins/CountryFlags/src/ip2country.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/CountryFlags') diff --git a/plugins/CountryFlags/src/ip2country.cpp b/plugins/CountryFlags/src/ip2country.cpp index b3411d8ec9..1612d05c6d 100644 --- a/plugins/CountryFlags/src/ip2country.cpp +++ b/plugins/CountryFlags/src/ip2country.cpp @@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern HINSTANCE hInst; extern int nCountriesCount; extern struct CountryListEntry *countries; -static HANDLE hServiceIpToCountry; /************************* Bin Records ****************************/ @@ -304,7 +303,7 @@ void InitIpToCountry(void) nDataRecordsCount=0; dataRecords=NULL; /* Services */ - hServiceIpToCountry=CreateServiceFunction(MS_FLAGS_IPTOCOUNTRY,ServiceIpToCountry); + CreateServiceFunction(MS_FLAGS_IPTOCOUNTRY,ServiceIpToCountry); #ifdef BINCONV mir_forkthread(BinConvThread,NULL); #endif @@ -312,7 +311,5 @@ void InitIpToCountry(void) void UninitIpToCountry(void) { - mir_free(dataRecords); /* does NULL check */ - /* Servcies */ - DestroyServiceFunction(hServiceIpToCountry); + mir_free(dataRecords); } -- cgit v1.2.3