[gtksourceview] CompletionWords: fix memory leak of the GSequence
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] CompletionWords: fix memory leak of the GSequence
- Date: Mon, 20 May 2013 12:45:32 +0000 (UTC)
commit f5fac48d05da22ea90ffffdc1c29bac627c98cb2
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 20 12:36:55 2013 +0200
CompletionWords: fix memory leak of the GSequence
It seems that the contents of the GSequence was already freed
(elsewhere). So it's not a big memory leak.
.../words/gtksourcecompletionwordslibrary.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
index 34157a6..06d9743 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
@@ -45,6 +45,10 @@ G_DEFINE_TYPE (GtkSourceCompletionWordsLibrary, gtk_source_completion_words_libr
static void
gtk_source_completion_words_library_finalize (GObject *object)
{
+ GtkSourceCompletionWordsLibrary *library = GTK_SOURCE_COMPLETION_WORDS_LIBRARY (object);
+
+ g_sequence_free (library->priv->store);
+
G_OBJECT_CLASS (gtk_source_completion_words_library_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]