summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-06-30 16:34:20 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-07-29 12:13:41 +0100
commit0db75bb3f91fc058c56650100f75cea5204c6af6 (patch)
treeec4cfcf21d439bed8d3a7673202af3b43bdfe712 /lib
parent72357f3de04ab9aa57b046b666e02090641f0aa4 (diff)
downloadintel-gpu-tools-0db75bb3f91fc058c56650100f75cea5204c6af6.tar.gz
intel-gpu-tools-0db75bb3f91fc058c56650100f75cea5204c6af6.tar.bz2
intel-gpu-tools-0db75bb3f91fc058c56650100f75cea5204c6af6.zip
lib: Don't take a reference to the surface in get_cairo_surface()
We don't need to keep a reference to the surface, the cairo context will keep a reference to it until we destroy it. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 83f43433..d07af0d3 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -547,7 +547,7 @@ static cairo_surface_t *get_cairo_surface(int fd, struct igt_fb *fb)
I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
igt_assert(cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS);
- return cairo_surface_reference(fb->cairo_surface);
+ return fb->cairo_surface;
}
/**