diff options
Diffstat (limited to 'backends/pulse/pulse-device-switch.c')
-rw-r--r-- | backends/pulse/pulse-device-switch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/pulse/pulse-device-switch.c b/backends/pulse/pulse-device-switch.c index c6b8316..4bd32ce 100644 --- a/backends/pulse/pulse-device-switch.c +++ b/backends/pulse/pulse-device-switch.c @@ -89,6 +89,10 @@ pulse_device_switch_dispose (GObject *object) PulseDeviceSwitch * pulse_device_switch_new (const gchar *name, const gchar *label, PulseDevice *device) { + g_return_val_if_fail (name != NULL, NULL); + g_return_val_if_fail (label != NULL, NULL); + g_return_val_if_fail (PULSE_IS_DEVICE (device), NULL); + return g_object_new (PULSE_TYPE_DEVICE_SWITCH, "name", name, "label", label, |