summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Speckmaier <sps@ipunkt.biz>2018-05-28 16:31:24 +0200
committerSven Speckmaier <sps@ipunkt.biz>2018-05-28 16:31:24 +0200
commit9ed4a3afb83067cc9dfec950c478af2e1f56848b (patch)
treef17fb560c9b74aadc8893dec5b65427021105c6c /src
parent0b03bb353581ee8325e2dd5fc7dfb1edae3a94cf (diff)
assert and free data->element_id in editor return
Diffstat (limited to 'src')
-rw-r--r--src/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index 2a90c25..de76eb7 100644
--- a/src/input.c
+++ b/src/input.c
@@ -187,6 +187,7 @@ static void resume_editor(GPid pid, int status, EditorData *data)
g_assert(data);
g_assert(data->c);
g_assert(data->file);
+ g_assert(data->element_id);
if (status == 0) {
/* get the text the editor stored */
@@ -213,6 +214,7 @@ static void resume_editor(GPid pid, int status, EditorData *data)
g_unlink(data->file);
g_free(data->file);
+ g_free(data->element_id);
g_slice_free(EditorData, data);
g_spawn_close_pid(pid);
}