/* Except its own */
if (child && (child != subsurface)) {
pepper_view_t *view;
+ pepper_view_t *delete_view = NULL;
pepper_list_for_each(view, &subsurface->surface->view_list, surface_link) {
if (view->parent == parent_view) {
+#if 0
/* FIXME: need this ? */
pepper_view_set_surface(view, NULL);
pepper_view_destroy(view);
+#else
+ delete_view = view;
+#endif
}
}
+
+ /* FIXME: need this ? */
+ if (delete_view) {
+ pepper_view_set_surface(delete_view, NULL);
+ pepper_view_destroy(delete_view);
+ }
}
}
}
gettimeofday(&tv, NULL);
- brokendown_time = localtime(&tv.tv_sec);
+ localtime_r(&tv.tv_sec, brokendown_time);
if (brokendown_time == NULL)
return fprintf(pepper_log_file, "[(NULL)localtime] ");
} else {
char tty_str[32];
- sprintf(tty_str, "/dev/tty%d", tty);
+ snprintf(tty_str, 32, "/dev/tty%d", tty);
fd = open(tty_str, O_RDWR | O_CLOEXEC);
if (fd < 0)
return PEPPER_FALSE;