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

Method free

distrho/extra/FileBrowserDialogImpl.cpp:411–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409#endif
410
411 void free()
412 {
413 if (selectedFile == nullptr)
414 return;
415
416 if (selectedFile == kSelectedFileCancelled || std::strcmp(selectedFile, kSelectedFileCancelled) == 0)
417 {
418 selectedFile = nullptr;
419 return;
420 }
421
422 std::free(const_cast<char*>(selectedFile));
423 selectedFile = nullptr;
424 }
425
426 DISTRHO_DECLARE_NON_COPYABLE(FileBrowserData)
427};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected