[atomix/wip/kill-libxml] More memory leaks killed
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix/wip/kill-libxml] More memory leaks killed
- Date: Mon, 30 Mar 2015 10:29:39 +0000 (UTC)
commit 1952b531ce089666a3ecb2e023254914a86c63bd
Author: Robert Roth <robert roth off gmail com>
Date: Mon Mar 30 13:29:26 2015 +0300
More memory leaks killed
src/level-manager.c | 2 +-
src/main.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/level-manager.c b/src/level-manager.c
index 2e20160..fd19f82 100644
--- a/src/level-manager.c
+++ b/src/level-manager.c
@@ -101,7 +101,7 @@ static void level_manager_finalize (GObject *object)
{
LevelManager *tm = LEVEL_MANAGER (object);
g_hash_table_destroy (tm->priv->levels);
-
+ g_list_free_full (tm->priv->level_seq, g_free);
g_free (tm->priv);
tm->priv = NULL;
}
diff --git a/src/main.c b/src/main.c
index 24f9190..948138b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -654,6 +654,8 @@ static AtomixApp *create_gui (void)
app->lb_formula = GTK_WIDGET (gtk_builder_get_object (builder, "formula_value"));
app->lb_score = GTK_WIDGET (gtk_builder_get_object (builder, "score_value"));
+ g_object_unref (builder);
+
icon_path = g_build_filename (DATADIR,
"pixmaps",
"atomix-icon.png",
@@ -664,7 +666,6 @@ static AtomixApp *create_gui (void)
gtk_widget_show_all (GTK_WIDGET (app->mainwin));
- g_object_unref (builder);
return app;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]