[evolution/wip/webkit2] Free the GVariant with g_variant_unref and not with g_object_unref



commit 1e7da51f16db7fe9543c16f911e23ff22bd30a95
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Jul 22 12:04:05 2016 +0200

    Free the GVariant with g_variant_unref and not with g_object_unref

 modules/webkit-editor/e-webkit-editor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index d90b0c8..8508d70 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -4110,7 +4110,7 @@ webkit_editor_cell_get_width (EContentEditor *editor,
                        else if (g_ascii_strncasecmp (width, "auto", 4) != 0)
                                *unit = E_CONTENT_EDITOR_UNIT_PIXEL;
                }
-               g_object_unref (result);
+               g_variant_unref (result);
        }
 
        return value;
@@ -4580,7 +4580,7 @@ webkit_editor_table_get_width (EContentEditor *editor,
                        else if (g_ascii_strncasecmp (width, "auto", 4) != 0)
                                *unit = E_CONTENT_EDITOR_UNIT_PIXEL;
                }
-               g_object_unref (result);
+               g_variant_unref (result);
        }
 
        return value;


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