This function was missing.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
main
Ville Syrjälä 2012-02-02 14:53:41 -05:00 committed by Jerome Glisse
parent df497e9281
commit a14c3dd0f9
2 changed files with 10 additions and 0 deletions

View File

@ -965,3 +965,12 @@ err_allocs:
return r; return r;
} }
void drmModeFreePlaneResources(drmModePlaneResPtr ptr)
{
if (!ptr)
return;
drmFree(ptr->planes);
drmFree(ptr);
}

View File

@ -305,6 +305,7 @@ extern void drmModeFreeCrtc( drmModeCrtcPtr ptr );
extern void drmModeFreeConnector( drmModeConnectorPtr ptr ); extern void drmModeFreeConnector( drmModeConnectorPtr ptr );
extern void drmModeFreeEncoder( drmModeEncoderPtr ptr ); extern void drmModeFreeEncoder( drmModeEncoderPtr ptr );
extern void drmModeFreePlane( drmModePlanePtr ptr ); extern void drmModeFreePlane( drmModePlanePtr ptr );
extern void drmModeFreePlaneResources(drmModePlaneResPtr ptr);
/** /**
* Retrives all of the resources associated with a card. * Retrives all of the resources associated with a card.