Re: free resource

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 14, 2015 at 4:44 AM, Alex Vazquez <avazquez.dev@xxxxxxxxx> wrote:
> Hi!
> I want to know if when i use  drmModeFreeResources() i need free the
> resources crtc, encoder and connector before or it is not necessary.

drmModeFreeResources() only frees the drmModeResPtr object (including
it's arrays of connector-id's, etc).. you would independently need to
match calls to drmModeGet{Crtc,Connector,etc}() to
drmModeFree{Crtc,Connector,etc}()

BR,
-R

> Regards.
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux