[gimp/wip/animation: 62/197] plug-ins: do not destroy widgets twice.



commit bf881644df52affd2940f8f4e6f8e396c3a58f35
Author: Jehan <jehan girinstud io>
Date:   Mon Jul 25 02:13:19 2016 +0200

    plug-ins: do not destroy widgets twice.

 .../animation-play/widgets/animation-storyboard.c  |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-storyboard.c 
b/plug-ins/animation-play/widgets/animation-storyboard.c
index b9cebf6..96994b0 100644
--- a/plug-ins/animation-play/widgets/animation-storyboard.c
+++ b/plug-ins/animation-play/widgets/animation-storyboard.c
@@ -253,20 +253,17 @@ animation_storyboard_load (Animation           *animation,
                          NULL);
   if (view->priv->panel_buttons)
     {
-      g_list_free_full (view->priv->panel_buttons,
-                        (GDestroyNotify) gtk_widget_destroy);
+      g_list_free (view->priv->panel_buttons);
       view->priv->panel_buttons = NULL;
     }
   if (view->priv->disposal_buttons)
     {
-      g_list_free_full (view->priv->disposal_buttons,
-                        (GDestroyNotify) gtk_widget_destroy);
+      g_list_free (view->priv->disposal_buttons);
       view->priv->disposal_buttons = NULL;
     }
   if (view->priv->comments)
     {
-      g_list_free_full (view->priv->comments,
-                        (GDestroyNotify) gtk_widget_destroy);
+      g_list_free (view->priv->comments);
       view->priv->comments = NULL;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]