libsysprof-ui: clean up and remove child widgets

This commit is contained in:
Christian Hergert
2021-10-01 15:34:28 -07:00
parent f4b8dccb52
commit 6be7087c74
4 changed files with 41 additions and 3 deletions

View File

@ -83,6 +83,10 @@ sysprof_recording_state_view_dispose (GObject *object)
{
SysprofRecordingStateView *self = (SysprofRecordingStateView *)object;
SysprofRecordingStateViewPrivate *priv = sysprof_recording_state_view_get_instance_private (self);
GtkWidget *child;
while ((child = gtk_widget_get_first_child (GTK_WIDGET (self))))
gtk_widget_unparent (child);
if (priv->profiler != NULL)
{