diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
commit | 3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch) | |
tree | d09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/CountryFlags/src | |
parent | b5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff) |
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/CountryFlags/src')
-rw-r--r-- | plugins/CountryFlags/src/ip2country.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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);
}
|