summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d33954)
raw | patch | inline | side by side (parent: 0d33954)
author | Max Kellermann <max@duempel.org> | |
Fri, 9 Oct 2009 18:27:43 +0000 (20:27 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 9 Oct 2009 18:27:43 +0000 (20:27 +0200) |
Also don't clear the list_window object.
src/list_window.c | patch | blob | history |
diff --git a/src/list_window.c b/src/list_window.c
index ca857b8a06ec60185e3d9d334c318d084b881b55..6f6c34cbd625b8571deeabe236263348be165bcd 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
void
list_window_free(struct list_window *lw)
{
- if (lw) {
- memset(lw, 0, sizeof(list_window_t));
- g_free(lw);
- }
+ assert(lw != NULL);
+
+ g_free(lw);
}
void