summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-17 17:28:08 -0700
committerKeith Packard <keithp@keithp.com>2009-09-17 17:28:49 -0700
commit0a24654129847cf5cd61b5e8fb54c8f9c7441c55 (patch)
treeda4cb9ef31bafb5024c0930a2c8313d3418ee240 /libdrm
parentcdd325b59a17a614b90fc2f8b388175e6d79e3cf (diff)
drmModeFreeConnector: free encoders and properties
These were leaking. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index ea11207e..88b4fe3a 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -116,6 +116,9 @@ void drmModeFreeConnector(drmModeConnectorPtr ptr)
if (!ptr)
return;
+ drmFree(ptr->encoders);
+ drmFree(ptr->prop_values);
+ drmFree(ptr->props);
drmFree(ptr->modes);
drmFree(ptr);