summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--src/actions.c1
-rw-r--r--src/completions.c2
-rw-r--r--src/editor.c1
-rw-r--r--src/main.c2
5 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bf20ccb..6a6ad34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-03-07 Shawn Betts <sabetts@vcn.bc.ca>
+
+ * src/main.c (clean_up): properly free rp_frame_numset
+
+ * src/editor.c (editor_enter): free line->buffer before setting it to the history expansion.
+
+ * src/completions.c (completions_free): free the rp_completions struct too
+
+ * src/actions.c (del_frame_undo): free the rp_frame_undo struct too.
+
2006-02-26 Shawn Betts <sabetts@vcn.bc.ca>
* src/editor.c (editor_insert): use memmove to make room for
diff --git a/src/actions.c b/src/actions.c
index 741b69c..c41ac91 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -376,6 +376,7 @@ del_frame_undo (rp_frame_undo *u)
if (!u) return;
if (u->frames) free (u->frames);
list_del (&(u->node));
+ free (u);
rp_num_frame_undos--; /* decrement counter */
}
diff --git a/src/completions.c b/src/completions.c
index db8d75a..4c62d71 100644
--- a/src/completions.c
+++ b/src/completions.c
@@ -55,6 +55,8 @@ completions_free (rp_completions *c)
/* Free the partial string. */
if (c->partial)
free (c->partial);
+
+ free (c);
}
static void
diff --git a/src/editor.c b/src/editor.c
index 3965464..6aea958 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -487,6 +487,7 @@ editor_enter (rp_input_line *line)
else /* result == 0 || result == 1 */
{
history_add (expansion);
+ free (line->buffer);
line->buffer = expansion;
}
#endif /* HAVE_HISTORY */
diff --git a/src/main.c b/src/main.c
index 2cf6809..f4bcb57 100644
--- a/src/main.c
+++ b/src/main.c
@@ -748,7 +748,7 @@ clean_up ()
}
/* Free the global frame numset shared by all screens. */
- free (rp_frame_numset);
+ numset_free (rp_frame_numset);
free_xinerama();