diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2013-01-23 16:58:47 -0800 |
---|---|---|
committer | Matt Dew <marcoz@osource.org> | 2013-02-18 13:19:05 -0700 |
commit | e604b19fc54fee839bbe2d66930b36108ff03950 (patch) | |
tree | 4cd2cc284e3c902f15124ccf4dd71abf5bba7e6b /hw/dmx/config | |
parent | c260ae1a0ca76dadc44e7031ffcb78e12ba4087e (diff) |
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>
Diffstat (limited to 'hw/dmx/config')
0 files changed, 0 insertions, 0 deletions