MCPcopy Create free account
hub / github.com/DISTRHO/DPF / ~PrivateData

Method ~PrivateData

dgl/src/WindowPrivateData.cpp:246–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246Window::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

Callers

nothing calls this directly

Calls 3

fileBrowserCloseFunction · 0.85
oneWindowClosedMethod · 0.80
puglHideFunction · 0.50

Tested by

no test coverage detected