xserver-multidpi/randr
Aaron Plattner 7115f6c709 randr: unref the provider shared pixmap the appropriate number of times
When an RandR shared pixmap is created in rrCreateSharedPixmap, it has a refcnt
of 1.  Then, PixmapShareToSlave bumps the refcnt to 2.  However, there's no
corresponding PixmapUnshareFromSlave where the refcnt can be decreased again,
and there's no convenient common place where the refcnt can be decremented when
the slave pixmap is destroyed.

Fix this by just unreffing the pixmap twice in RRCrtcDetachScanoutPixmap.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2013-02-11 22:28:24 -08:00
..
Makefile.am randr: add provider object and provider property support (v6) 2012-07-06 22:16:02 +01:00
randr.c randr: call RRProviderInit in the proper place. 2012-11-30 07:25:54 -08:00
randrstr.h randr: bump advertised RandR version to 1.4 2013-02-08 09:09:54 -08:00
rrcrtc.c randr: unref the provider shared pixmap the appropriate number of times 2013-02-11 22:28:24 -08:00
rrdispatch.c Use C99 designated initializers in randr Replies 2012-07-09 19:58:30 -07:00
rrinfo.c randr: Clean up compiler warnings about unused and shadowing variables 2012-06-21 18:42:46 -07:00
rrmode.c RRModeCreate: plug memory leak of newModes if AddResource fails 2012-08-06 15:22:53 -07:00
rroutput.c Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
rrpointer.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrproperty.c rrproperty.c: free newly allocated prop in more error paths 2012-08-06 15:22:53 -07:00
rrprovider.c Use C99 designated initializers in RandR 1.4 extension Replies 2012-07-16 21:25:07 -07:00
rrproviderproperty.c rrproviderproperty.c: free newly allocated prop in more error paths 2012-08-06 15:22:53 -07:00
rrscreen.c Use C99 designated initializers in RandR 1.4 extension Replies 2012-07-16 21:25:07 -07:00
rrsdispatch.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrtransform.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrtransform.h randr: Remove redundant declaration. 2012-05-14 13:16:54 +01:00
rrxinerama.c randr: fix xinerama output for output slaves 2012-08-06 15:42:39 -07:00