diff options
author | Ville Syrjälä <ville.syrjala at linux.intel.com> | 2012-02-02 14:53:41 -0500 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2012-02-02 14:53:41 -0500 |
commit | a14c3dd0f9c468d5dba86df5ffa786aea77068a9 (patch) | |
tree | d9112d772824e5c94e87025ad19c460e6aff66b4 | |
parent | df497e9281036ca9397bc5a08a82fdf44dbc12b2 (diff) |
This function was missing.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
-rw-r--r-- | xf86drmMode.c | 9 | ||||
-rw-r--r-- | xf86drmMode.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c index e67ed4a3..473e7341 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -965,3 +965,12 @@ err_allocs: return r; } + +void drmModeFreePlaneResources(drmModePlaneResPtr ptr) +{ + if (!ptr) + return; + + drmFree(ptr->planes); + drmFree(ptr); +} diff --git a/xf86drmMode.h b/xf86drmMode.h index c0fc2efa..34f5fb14 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -305,6 +305,7 @@ extern void drmModeFreeCrtc( drmModeCrtcPtr ptr ); extern void drmModeFreeConnector( drmModeConnectorPtr ptr ); extern void drmModeFreeEncoder( drmModeEncoderPtr ptr ); extern void drmModeFreePlane( drmModePlanePtr ptr ); +extern void drmModeFreePlaneResources(drmModePlaneResPtr ptr); /** * Retrives all of the resources associated with a card. |