diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-19 10:28:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-19 14:03:23 +0000 |
commit | a7a842f4a437216cba8cd623306506aa30db7d8e (patch) | |
tree | 6b50985d0fa9735c5e3fc24a37fa8c1a398c90da /vcl/unx | |
parent | 24c9373409dda957ad6e1f1b4e3ec6c7135ecf1a (diff) |
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 <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index c051da78b969..6b658d24fae7 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) |