[gnome-builder] git: plug leak of DiffTask structure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: plug leak of DiffTask structure
- Date: Tue, 30 Jan 2018 22:54:51 +0000 (UTC)
commit dd7cda05906c047f9a1c4239ae04f3253207f318
Author: Christian Hergert <chergert redhat com>
Date: Tue Jan 30 14:54:29 2018 -0800
git: plug leak of DiffTask structure
Always remember to release the container structure children.
src/plugins/git/ide-git-buffer-change-monitor.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/git/ide-git-buffer-change-monitor.c b/src/plugins/git/ide-git-buffer-change-monitor.c
index ec63fa7e4..79f7eceff 100644
--- a/src/plugins/git/ide-git-buffer-change-monitor.c
+++ b/src/plugins/git/ide-git-buffer-change-monitor.c
@@ -104,6 +104,7 @@ diff_task_free (gpointer data)
g_clear_object (&diff->repository);
g_clear_pointer (&diff->state, g_hash_table_unref);
g_clear_pointer (&diff->content, g_bytes_unref);
+ g_slice_free (DiffTask, diff);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]