Пример #1
0
        static unsafe void RecyclePtr(IntPtr intptr)
        {
            cef_window_info_t *ptr = (cef_window_info_t *)intptr;

            ObjectInterop.cef_string_utf16_clear(&ptr->window_name);
            //TODO:other strings
        }
Пример #2
0
        static unsafe void RecyclePtr(IntPtr intptr)
        {
            cef_string_t *ptr = (cef_string_t *)intptr;

            if (ptr->str != null)
            {
                ObjectInterop.cef_string_utf16_clear(ptr);
            }
        }
Пример #3
0
        static unsafe void RecyclePtr(IntPtr intptr)
        {
            cef_settings_t *ptr = (cef_settings_t *)intptr;

            //TODO: if the libcef.dll is not initialized , this function is not able to call
            //so check the pointer before release it
            if (ptr->resources_dir_path.str != null)
            {
                ObjectInterop.cef_string_utf16_clear(&ptr->resources_dir_path);
            }
            //TODO:other strings
        }