[gtranslator: 19/20] view: Use g_object_clear instead of g_object_unref
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 19/20] view: Use g_object_clear instead of g_object_unref
- Date: Sun, 6 Mar 2022 12:34:49 +0000 (UTC)
commit 5bd5b1ebcd96a0e46c48882ffa7acfbedd5a82df
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sat Mar 5 18:25:51 2022 +0100
view: Use g_object_clear instead of g_object_unref
When opening a project, then clicking open from DL and closing the app
one would get a spam of
(gtranslator:13): GLib-GObject-CRITICAL **: 18:19:21.607: g_object_unref: assertion 'G_IS_OBJECT
(object)' failed
this fixes it.
src/gtr-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtr-view.c b/src/gtr-view.c
index 40a17819..3ba7421d 100644
--- a/src/gtr-view.c
+++ b/src/gtr-view.c
@@ -172,7 +172,7 @@ gtr_view_dispose (GObject * object)
g_clear_object (&priv->editor_settings);
g_clear_object (&priv->ui_settings);
g_clear_object (&priv->spell);
- g_object_unref (&priv->provider);
+ g_clear_object (&priv->provider);
G_OBJECT_CLASS (gtr_view_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]