[libgda] gdaui-raw-form: fix dispose about private struct



commit 672eadf6daaae8ac30c6f710f988ddb942876541
Author: Daniel Espinosa <esodan gmail com>
Date:   Mon Sep 10 08:31:15 2018 -0500

    gdaui-raw-form: fix dispose about private struct

 libgda-ui/gdaui-raw-form.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/libgda-ui/gdaui-raw-form.c b/libgda-ui/gdaui-raw-form.c
index 1df1b9f0a..7943b6741 100644
--- a/libgda-ui/gdaui-raw-form.c
+++ b/libgda-ui/gdaui-raw-form.c
@@ -454,19 +454,9 @@ gdaui_raw_form_dispose (GObject *object)
 {
        GdauiRawForm *form;
 
-       g_return_if_fail (object != NULL);
-       g_return_if_fail (GDAUI_IS_RAW_FORM (object));
        form = GDAUI_RAW_FORM (object);
 
-       GdauiRawFormPrivate *priv = gdaui_raw_form_get_instance_private (form);
-
-       if (priv) {
-               gdaui_raw_form_clean (form);
-
-               /* the private area itself */
-               g_free (priv);
-               priv = NULL;
-       }
+       gdaui_raw_form_clean (form);
 
        /* for the parent class */
        G_OBJECT_CLASS (gdaui_raw_form_parent_class)->dispose (object);


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