Summary: Core X11 protocol client library
Name: libX11
Version: 1.5.0
-Release: 3
-VCS: framework/uifw/xorg/lib/libx11#REBASE-7-g234d56c50c5d38bc7d55b573fb94ec4d84ed4b3d
+Release: 5
License: MIT
Group: System Environment/Libraries
URL: http://www.x.org
--enable-specs \
--enable-man-pages=3 \
--with-xcb=yes \
- CFLAGS="${CFLAGS} -D_F_REDUCE_SYSCALL " \
+ CFLAGS="${CFLAGS} -D_F_REDUCE_SYSCALL -D_FIX_MEM_LEAK_" \
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?jobs:-j%jobs}
mkdir -p %{buildroot}/usr/share/license
cp -af COPYING %{buildroot}/usr/share/license/%{name}
cp -af COPYING %{buildroot}/usr/share/license/%{name}-common
-cp -af COPYING %{buildroot}/usr/share/license/%{name}-devel
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# We intentionally don't ship *.la files
%{_libdir}/pkgconfig/x11-xcb.pc
#%{_mandir}/man3/*.3*
#%{_mandir}/man5/*.5*
-/usr/share/license/%{name}-devel
XLC_PUBLIC_METHODS(lcd)->superclass = superclass;
+#ifdef _FIX_MEM_LEAK_
+ //BUGFIX: Memory leak
+ lcd->methods->close = destroy;
+#endif
+
if (superclass->pub.initialize) {
- if ((*superclass->pub.initialize)(lcd) == False)
+ if ((*superclass->pub.initialize)(lcd) == False)
return False;
}