pepper: destroy resources in subcompositor_destroy 13/52913/1
authorJaehoon Jeong <jh01.j@samsung.com>
Wed, 25 Nov 2015 06:51:39 +0000 (15:51 +0900)
committerTaekyun Kim <tkq.kim@samsung.com>
Fri, 27 Nov 2015 10:28:31 +0000 (19:28 +0900)
Change-Id: I0c3a7591403d411409e92a9553daa24d5a3870bc

src/lib/pepper/subcompositor.c

index 4249cdf..85c296c 100644 (file)
@@ -124,10 +124,13 @@ error:
 void
 pepper_subcompositor_destroy(pepper_subcompositor_t *subcompositor)
 {
+    struct wl_resource *resource, *tmp;
+
     if (subcompositor->global)
         wl_global_destroy(subcompositor->global);
 
-    /* TODO */
+    wl_resource_for_each_safe(resource, tmp, &subcompositor->resource_list)
+        wl_resource_destroy(resource);
 
     pepper_object_fini(&subcompositor->base);
     free(subcompositor);