summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-03 19:45:11 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-03 19:45:18 +0200
commit308031b69cd440534ee076dcaabba93e489b4faf (patch)
tree4519a3d74a25b297ccf0a99b65f971c20fd41a14 /src/menu.c
parent066049d1c875892e3863989cea0bee07f3ab3a38 (diff)
Fix memory leak related to the menu
The menu background images were not properly free()d
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c
index 63a2047..1002157 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -167,6 +167,9 @@ void feh_menu_free(feh_menu * m)
}
pl = l;
}
+ if (m->bg)
+ gib_imlib_free_image_and_decache(m->bg);
+
free(m);
D_RETURN_(4);