[Xfce4-commits] [apps/xfce4-screenshooter] 01/01: Avoid destroying size window twice (Bug #15792)

noreply at xfce.org noreply at xfce.org
Wed Aug 14 05:10:32 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screenshooter.

commit 696501cd594821dd779820b2aecd1e60fdc7a3d2
Author: Andre Miranda <andreldm at xfce.org>
Date:   Wed Aug 14 00:07:56 2019 -0300

    Avoid destroying size window twice (Bug #15792)
---
 lib/screenshooter-capture.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index c1e1ebe..f37c143 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -592,6 +592,7 @@ static gboolean cb_button_released (GtkWidget *widget,
         {
           gtk_dialog_response (GTK_DIALOG (widget), GTK_RESPONSE_NONE);
           gtk_widget_destroy (rbdata->size_window);
+          rbdata->size_window = NULL;
           return TRUE;
         }
       else
@@ -960,7 +961,8 @@ static GdkPixbuf
                                              delay);
 
   cleanup:
-  gtk_widget_destroy (rbdata.size_window);
+  if (rbdata.size_window)
+    gtk_widget_destroy (rbdata.size_window);
   gdk_seat_ungrab (seat);
   gdk_display_flush (display);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list