summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-03-08 00:33:29 +0000
committersabetts <sabetts>2006-03-08 00:33:29 +0000
commitc37b647396a065eb4928257452c785f148bcae50 (patch)
tree7764a74ae892e2c7b6feb48697a9e80786cf5c30 /src
parent8460497f0ed5ea8a6b7f0029243a26713a36cc47 (diff)
downloadratpoison-c37b647396a065eb4928257452c785f148bcae50.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/actions.c1
-rw-r--r--src/completions.c2
-rw-r--r--src/editor.c1
-rw-r--r--src/main.c2
4 files changed, 5 insertions, 1 deletions
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();