Commit 1949be72 authored by Kai Lüke's avatar Kai Lüke
Browse files

gvc-mixer-ui-device: Do not deref NULL pointer

parent 7a621180
Pipeline #244199 passed with stage
in 1 minute and 59 seconds
......@@ -557,6 +557,11 @@ gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device)
}
profile = gvc_mixer_card_get_profile (device->priv->card);
if (profile == NULL) {
g_debug ("Device has no assigned profile");
return NULL;
}
return gvc_mixer_ui_device_get_matching_profile (device, profile->profile);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment