| 244 | } |
| 245 | |
| 246 | Window::PrivateData::~PrivateData() |
| 247 | { |
| 248 | appData->idleCallbacks.remove(this); |
| 249 | appData->windows.remove(self); |
| 250 | std::free(filenameToRenderInto); |
| 251 | |
| 252 | if (view == nullptr) |
| 253 | return; |
| 254 | |
| 255 | if (isEmbed) |
| 256 | { |
| 257 | #ifdef DGL_USE_FILE_BROWSER |
| 258 | if (fileBrowserHandle != nullptr) |
| 259 | fileBrowserClose(fileBrowserHandle); |
| 260 | #endif |
| 261 | #ifdef DGL_USE_WEB_VIEW |
| 262 | if (webViewHandle != nullptr) |
| 263 | webViewDestroy(webViewHandle); |
| 264 | #endif |
| 265 | puglHide(view); |
| 266 | appData->oneWindowClosed(); |
| 267 | isClosed = true; |
| 268 | isVisible = false; |
| 269 | } |
| 270 | |
| 271 | #ifndef DPF_TEST_WINDOW_CPP |
| 272 | destroyContext(); |
| 273 | #endif |
| 274 | puglFreeView(view); |
| 275 | } |
| 276 | |
| 277 | // ----------------------------------------------------------------------- |
| 278 |
nothing calls this directly
no test coverage detected