OSDN Git Service

Add Pratform x64 and Fix Console-bug(thanks to rururu)
[ckw/ckw.git] / ime_wrap.cpp
index a3659ed..84a9e27 100644 (file)
@@ -94,8 +94,17 @@ BOOL ime_wrap_init()
                fn_SetCompositionFontW = NULL;
                fn_SetCompositionWindow = NULL;
                FreeLibrary(gDll);
+               gDll = NULL;
        }
        return(result);
 }
 
+void ime_wrap_term()
+{
+       if (gDll) {
+               FreeLibrary(gDll);
+               gDll = NULL;
+       }
+}
+
 /* EOF */