]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[drm] free stored connector
authorRay Strode <rstrode@redhat.com>
Sat, 21 Aug 2010 02:07:26 +0000 (22:07 -0400)
committerRay Strode <rstrode@redhat.com>
Sat, 21 Aug 2010 02:10:14 +0000 (22:10 -0400)
For most connectors associating monitors with our virtual
'heads', we merely track their ids.  This means we don't have
to bother freeing any client side state at deallocation time.

There's one exception, though.  The main connector, connector0,
we keep an open reference to.  We do this, because it owns the
mode object we use in SetCrtc calls.

This commit ensures that connector0 for each head is properly freed
when that head is deallocated.

src/plugins/renderers/drm/plugin.c

index fcb528454c003f9e7200f10db38914bfc0ff5e41..308d0a0084cd438cb3570fced6e71cd599d2a7c8 100644 (file)
@@ -200,6 +200,7 @@ ply_renderer_head_free (ply_renderer_head_t *head)
   ply_trace ("freeing %ldx%ld renderer head", head->area.width, head->area.height);
   ply_pixel_buffer_free (head->pixel_buffer);
 
+  drmModeFreeConnector (head->connector0);
   ply_array_free (head->connector_ids);
   free (head);
 }