projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b03bb3
)
assert and free data->element_id in editor return
author
Sven Speckmaier
<sps@ipunkt.biz>
Mon, 28 May 2018 14:31:24 +0000
(16:31 +0200)
committer
Sven Speckmaier
<sps@ipunkt.biz>
Mon, 28 May 2018 14:31:24 +0000
(16:31 +0200)
src/input.c
patch
|
blob
|
history
diff --git
a/src/input.c
b/src/input.c
index
2a90c25
..
de76eb7
100644
(file)
--- 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);
}