diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-07 08:55:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-07 08:55:40 -0400 |
commit | ce597cf034f10ce731de1ccd64002d2e3cb6baf1 (patch) | |
tree | d1098082f282127809b08b56d51b2bdb629039f9 | |
parent | cdcb55da58a5c224f17b07f4030cd59e8b234376 (diff) | |
download | gtk+-ce597cf034f10ce731de1ccd64002d2e3cb6baf1.tar.gz |
inspector: Plug a memory leak
-rw-r--r-- | gtk/inspector/action-editor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/inspector/action-editor.c b/gtk/inspector/action-editor.c index 29cdec122f..666ff0e18d 100644 --- a/gtk/inspector/action-editor.c +++ b/gtk/inspector/action-editor.c @@ -229,6 +229,8 @@ update_widgets (GtkInspectorActionEditor *r) g_variant_type_free (r->state_type); r->state_type = g_variant_type_copy (g_variant_get_type (state)); gtk_inspector_variant_editor_set_value (r->state_entry, state); + + g_variant_unref (state); } if (G_IS_ACTION_GROUP (r->owner)) |