vcl/unx/gtk3/gtkinst.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit d7b1364f296b9b12be6f0234761b09ef39c9e682
Author: Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 19 10:28:47 2023 +0000
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Fri Jan 20 13:51:51 2023 +0000
use cairo_surface_destroy after gtk_drag_set_icon_surface
Change-Id: Iac543121a809eeabae630d4a426e72d5f9d47057
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145783
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
(cherry picked from commit a7a842f4a437216cba8cd623306506aa30db7d8e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145819
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index a072db8c5cc8..bd0da255a323 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -3135,6 +3135,7 @@ private:
{
cairo_surface_t *surface =
cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 0, 0);
gtk_drag_set_icon_surface(pContext, surface);
+ cairo_surface_destroy(surface);
}
m_nPressedButton = -1;
@@ -3287,6 +3288,7 @@ private:
{
cairo_surface_t *surface =
cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 0, 0);
gtk_drag_set_icon_surface(context, surface);
+ cairo_surface_destroy(surface);
}
#endif
if (!m_xDragSource)