[Libreoffice-commits] core.git: vcl/unx
Mark Wielaard
mark at klomp.org
Fri Jun 7 01:46:17 PDT 2013
vcl/unx/generic/dtrans/X11_selection.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 222119cde3d6e3d9f0a6acba24c188500d1b6103
Author: Mark Wielaard <mark at klomp.org>
Date: Fri Jun 7 09:11:17 2013 +0200
Fix memory leak in SelectionManager::getXdndVersion.
Release XListProperties atom properties of window after inspection.
Change-Id: I89d86509babd7a9d8ec65dbabe0a062bf69fc493
Reviewed-on: https://gerrit.libreoffice.org/4186
Reviewed-by: Noel Power <noel.power at suse.com>
Tested-by: Noel Power <noel.power at suse.com>
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 9cd2c0b..db613f3 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -3017,6 +3017,9 @@ int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
break;
}
}
+ if ( pProperties )
+ XFree (pProperties);
+
XLIB_Window aAwareWindow = rProxy != None ? rProxy : aWindow;
XGetWindowProperty( m_pDisplay, aAwareWindow, m_nXdndAware, 0, 1, False, XA_ATOM,
More information about the Libreoffice-commits
mailing list