summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-01-11 23:22:32 -0500
committerJason Woodward2010-01-11 23:22:32 -0500
commitbfcab4d93af1b4b75c8326e2741b8bb1c303cda2 (patch)
tree79164dce555c95346bd9c1bc0644b4bd62a67018
parent653b869daa3e51c317ba4e9e2337b66b9e0ed07b (diff)
downloadgslapt-bfcab4d93af1b4b75c8326e2741b8bb1c303cda2.tar.gz
free several package lists that were never freed
-rw-r--r--ChangeLog3
-rw-r--r--configure.in2
-rw-r--r--src/callbacks.c10
3 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b5bc14e..6305265 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
+0.5.2a Jan 11, 2010
+ * free several package lists that were never freed
+
0.5.2a Oct 17, 2009
* use slapt_disk_space_check from libslapt
diff --git a/configure.in b/configure.in
index 38d525c..5172caa 100644
--- a/configure.in
+++ b/configure.in
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_CONFIG_SRCDIR([configure.in])
-AM_INIT_AUTOMAKE(gslapt, 0.5.2a)
+AM_INIT_AUTOMAKE(gslapt, 0.5.2b)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
diff --git a/src/callbacks.c b/src/callbacks.c
index cce8c6f..0b4309c 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -309,8 +309,8 @@ void add_pkg_for_install (GtkWidget *gslapt, gpointer user_data)
}
}
}
-
- }else{
+ slapt_free_pkg_list(conflicts);
+ } else {
display_dep_error_dialog(pkg,missing_count,conflict_count);
}
@@ -366,7 +366,8 @@ void add_pkg_for_install (GtkWidget *gslapt, gpointer user_data)
set_execute_active();
}
- }else{
+ slapt_free_pkg_list(conflicts);
+ } else {
display_dep_error_dialog(pkg,missing_count,conflict_count);
}
@@ -675,6 +676,8 @@ void build_searched_treeviewlist (GtkWidget *treeview, gchar *pattern)
valid = gtk_tree_model_iter_next(base_model,&iter);
}
+ slapt_free_pkg_list(a_matches);
+ slapt_free_pkg_list(i_matches);
}
@@ -3550,6 +3553,7 @@ void mark_obsolete_packages (GtkMenuItem *menuitem, gpointer user_data)
}
unset_busy_cursor();
+ slapt_free_pkg_list(obsolete);
}
static void set_busy_cursor (void)