summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-05-30 15:57:07 -0400
committerChris Michael <cp.michael@samsung.com>2017-05-30 15:57:07 -0400
commitdc3da871396015507801724b7b844e5865f049d0 (patch)
tree6caea84c7b81f29b9bffc82abfbb376fa8f830c9 /src/lib
parentf2a0e5ae4cc1c946eb83fe6b9fe9b702f3ef1acf (diff)
ecore-drm2: Don't free output plane states if not using atomic
If atomic support is not enabled (kernel or env var), then we will not be filling output plane_states, so no need to free them (if non-atomic). @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 3173165aa5..60e4f8e7d8 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -923,14 +923,14 @@ _output_destroy(Ecore_Drm2_Device *dev, Ecore_Drm2_Output *output)
923 } 923 }
924#endif 924#endif
925 925
926 EINA_LIST_FREE(output->plane_states, pstate)
927 free(pstate);
928
929 EINA_LIST_FREE(output->planes, plane)
930 free(plane);
931
932 if (_ecore_drm2_use_atomic) 926 if (_ecore_drm2_use_atomic)
933 { 927 {
928 EINA_LIST_FREE(output->plane_states, pstate)
929 free(pstate);
930
931 EINA_LIST_FREE(output->planes, plane)
932 free(plane);
933
934 free(output->conn_state); 934 free(output->conn_state);
935 free(output->crtc_state); 935 free(output->crtc_state);
936 } 936 }