Browse Source

unref dbus connection on close

Signed-off-by: falkTX <falktx@falktx.com>
pull/349/head
falkTX 4 years ago
parent
commit
7934733751
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      distrho/DistrhoUI_macOS.mm
  2. +2
    -0
      distrho/extra/FileBrowserDialog.cpp

+ 1
- 1
distrho/DistrhoUI_macOS.mm View File

@@ -27,7 +27,7 @@
# include <algorithm>
# include <cmath>
# ifndef DGL_FILE_BROWSER_DISABLED
# include "../extra/FileBrowserDialog.cpp"
# include "extra/FileBrowserDialog.cpp"
# endif

// Declared in DistrhoUI.cpp but defined here because it uses Obj-C


+ 2
- 0
distrho/extra/FileBrowserDialog.cpp View File

@@ -232,6 +232,8 @@ struct FileBrowserData {
[nsBasePanel release];
#endif
#ifdef HAVE_X11
if (dbuscon != nullptr)
dbus_connection_unref(dbuscon);
if (x11display != nullptr)
XCloseDisplay(x11display);
#endif


Loading…
Cancel
Save