diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-01-17 10:55:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-01-17 10:55:53 -0500 |
commit | d7060025e01b4ffe2c01bad8617075b2f32bd1a9 (patch) | |
tree | 625a427f1aa87cd4d98a95768afa9523c7ac471b | |
parent | a5e929ce36adc385dfcfcf600e97fd9c11c38e12 (diff) | |
download | gtk+-d7060025e01b4ffe2c01bad8617075b2f32bd1a9.tar.gz |
inspector: Avoid a critical
Avoid a critical when closing the inspector with the
recorder page open.
-rw-r--r-- | gtk/inspector/recorder.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c index 5b6452f340..c8042ca580 100644 --- a/gtk/inspector/recorder.c +++ b/gtk/inspector/recorder.c @@ -404,6 +404,9 @@ recordings_list_row_selected (GtkListBox *box, { GtkInspectorRecording *recording; + if (recorder->recordings == NULL) + return; + if (row) recording = g_list_model_get_item (recorder->recordings, gtk_list_box_row_get_index (row)); else |