[gnome-builder] code: ensure highlight index variant is released



commit 8acd06a548f40d3cf842de38dd74e77954e6b1fc
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 20 19:14:45 2019 -0700

    code: ensure highlight index variant is released
    
    Plugs a leak that caused many search indexes to stay around
    while editing.

 src/libide/code/ide-highlight-index.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/code/ide-highlight-index.c b/src/libide/code/ide-highlight-index.c
index 464badd0e..4cf83e3f4 100644
--- a/src/libide/code/ide-highlight-index.c
+++ b/src/libide/code/ide-highlight-index.c
@@ -168,6 +168,7 @@ ide_highlight_index_finalize (IdeHighlightIndex *self)
 
   g_clear_pointer (&self->strings, g_string_chunk_free);
   g_clear_pointer (&self->index, g_hash_table_unref);
+  g_clear_pointer (&self->variant, g_variant_unref);
 
   IDE_EXIT;
 }


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