/[gentoo-x86]/x11-base/xorg-server/files/1.2.0-properly-free-device-devprivates-memory-leak-fix.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.2.0-properly-free-device-devprivates-memory-leak-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 28 07:41:03 2009 UTC (5 years ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
x11-base/xorg-server: drop old ebuilds, prune ${FILESDIR}
(Portage version: 2.2_rc42/cvs/Linux i686)

1 http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=b5fde366e2e21234ac0b81222fd5c42ca3e49cba
2 Properly free device devPrivates - memory leak fix.
3 author Eamon Walsh <ewalsh@tycho.nsa.gov>
4 Wed, 7 Mar 2007 17:29:55 +0000 (12:29 -0500)
5 committer Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>
6 Wed, 7 Mar 2007 17:29:55 +0000 (12:29 -0500)
7 commit b5fde366e2e21234ac0b81222fd5c42ca3e49cba
8 tree 21c4d64fc97f8a7b0ec39f7e7a408540dd78691e tree
9 parent a3d2c5d622d9ca36d6fa2966aff09524e3ea39ac commit | commitdiff
10 Properly free device devPrivates - memory leak fix.
11
12 --- xorg-server-1.2.0.orig/dix/devices.c 2007-03-18 21:43:21.000000000 +0100
13 +++ xorg-server-1.2.0/dix/devices.c 2007-03-18 21:47:58.000000000 +0100
14 @@ -268,20 +268,24 @@
15 if (l->xkb_sli)
16 XkbFreeSrvLedInfo(l->xkb_sli);
17 #endif
18 xfree(l);
19 }
20 #ifdef XKB
21 while (dev->xkb_interest) {
22 XkbRemoveResourceClient((DevicePtr)dev,dev->xkb_interest->resource);
23 }
24 #endif
25 +
26 + if (dev->devPrivates)
27 + xfree(dev->devPrivates);
28 +
29 xfree(dev->sync.event);
30 xfree(dev);
31 }
32
33 void
34 CloseDownDevices()
35 {
36 register DeviceIntPtr dev, next;
37
38 for (dev = inputInfo.devices; dev; dev = next)

  ViewVC Help
Powered by ViewVC 1.1.20