summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--src/XrrMonitor.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7643752..99e3944 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,17 +29,18 @@ AC_PREREQ([2.60])
# digit in the version number to track changes which don't affect the
# protocol, so Xrandr version l.n.m corresponds to protocol version l.n
#
-AC_INIT([libXrandr], [1.5.3],
+AC_INIT([libXrandr], [1.5.4],
[https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues],
[libXrandr])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-xz])
# Initialize libtool
-AC_PROG_LIBTOOL
+LT_INIT
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
m4_ifndef([XORG_MACROS_VERSION],
diff --git a/src/XrrMonitor.c b/src/XrrMonitor.c
index d9acb80..1964d6f 100644
--- a/src/XrrMonitor.c
+++ b/src/XrrMonitor.c
@@ -122,7 +122,7 @@ XRRGetMonitors(Display *dpy, Window window, Bool get_active, int *nmonitors)
buf += SIZEOF (xRRMonitorInfo);
xoutput = (CARD32 *) buf;
if (xmon->noutput > rep.noutputs) {
- Xfree(buf);
+ Xfree(buf_head);
Xfree(mon);
UnlockDisplay (dpy);
SyncHandle ();