From 60b601e52aa111eb8fc79e690bb953531552c9b9 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 17 Sep 2008 16:58:55 +0000 Subject: [PATCH] - libX11-1.1.4-xcb-xreply-leak.patch: Fix the BadFont case. --- libX11-1.1.4-xcb-xreply-leak.patch | 13 ++++++++----- libX11.spec | 5 ++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libX11-1.1.4-xcb-xreply-leak.patch b/libX11-1.1.4-xcb-xreply-leak.patch index 61b1502..6a902b8 100644 --- a/libX11-1.1.4-xcb-xreply-leak.patch +++ b/libX11-1.1.4-xcb-xreply-leak.patch @@ -1,6 +1,7 @@ ---- libX11-1.1.4/src/xcb_io.c 2008-03-06 15:45:06.000000000 -0500 -+++ hacked/src/xcb_io.c 2008-09-17 00:40:57.000000000 -0400 -@@ -396,15 +396,18 @@ +diff -up libX11-1.1.4/src/xcb_io.c.xcb-xreply-leak libX11-1.1.4/src/xcb_io.c +--- libX11-1.1.4/src/xcb_io.c.xcb-xreply-leak 2008-03-06 15:45:06.000000000 -0500 ++++ libX11-1.1.4/src/xcb_io.c 2008-09-17 12:58:05.000000000 -0400 +@@ -396,15 +396,19 @@ Status _XReply(Display *dpy, xReply *rep { case X_LookupColor: case X_AllocNamedColor: @@ -9,9 +10,11 @@ } break; case BadFont: - if(err->majorCode == X_QueryFont) +- if(err->majorCode == X_QueryFont) ++ if(err->majorCode == X_QueryFont) { + free(error); return 0; ++ } break; case BadAlloc: case BadAccess: @@ -19,7 +22,7 @@ return 0; } -@@ -413,10 +416,13 @@ +@@ -413,10 +417,13 @@ Status _XReply(Display *dpy, xReply *rep * want to suppress the error. */ for(ext = dpy->ext_procs; ext; ext = ext->next) diff --git a/libX11.spec b/libX11.spec index 34561f5..72556f7 100644 --- a/libX11.spec +++ b/libX11.spec @@ -1,7 +1,7 @@ Summary: X.Org X11 libX11 runtime library Name: libX11 Version: 1.1.4 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.x.org @@ -117,6 +117,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Wed Sep 17 2008 Adam Jackson 1.1.4-4 +- libX11-1.1.4-xcb-xreply-leak.patch: Fix the BadFont case. + * Wed Sep 17 2008 Adam Jackson 1.1.4-3 - libX11-1.1.4-xcb-xreply-leak.patch: Fix a leak when the client has a non-fatal error handler. (mclasen, fdo #17616)