add XFree(info), simplify README.md
authorphillbush <phillbush@cock.li>
Mon, 24 Aug 2020 01:26:23 +0000 (22:26 -0300)
committerphillbush <phillbush@cock.li>
Mon, 24 Aug 2020 01:26:23 +0000 (22:26 -0300)
README.md
xmenu.c

index cb61792..d81aa39 100644 (file)
--- a/README.md
+++ b/README.md
@@ -7,8 +7,7 @@
 XMenu is a menu utility for X.
 XMenu receives a menu specification in stdin, shows a menu for the user
 to select one of the options, and outputs the option selected to stdout.
 XMenu is a menu utility for X.
 XMenu receives a menu specification in stdin, shows a menu for the user
 to select one of the options, and outputs the option selected to stdout.
-XMenu can be controlled both via mouse and via keyboard.  The menu is a
-pop-up menu (that is, after selecting an option, the menu disappears).
+XMenu can be controlled both via mouse and via keyboard.
 
 In order to generate a menu of applications based on .desktop entries,
 as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu)
 
 In order to generate a menu of applications based on .desktop entries,
 as specified by XDG, checkout [xdg-xmenu](https://github.com/OliverLew/xdg-xmenu)
diff --git a/xmenu.c b/xmenu.c
index f910d0c..141551f 100644 (file)
--- a/xmenu.c
+++ b/xmenu.c
@@ -316,6 +316,8 @@ initmonitor(void)
                mon.y = info[selmon].y_org;
                mon.w = info[selmon].width;
                mon.h = info[selmon].height;
                mon.y = info[selmon].y_org;
                mon.w = info[selmon].width;
                mon.h = info[selmon].height;
+
+               XFree(info);
        }
 
        if (!pflag) {
        }
 
        if (!pflag) {