diff options
author | Michal Ratajsky <[email protected]> | 2016-01-09 20:08:32 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-02-21 11:55:59 +0100 |
commit | d1deea43570dfd5bd32b7040f89cf3c971df3b9a (patch) | |
tree | efe0f391556b765477a8c35a2fe02b59a9e5220d /backends/oss/oss-switch.c | |
parent | cf087148400ad5510bb781db2516962b19768f4f (diff) | |
download | libmatemixer-d1deea43570dfd5bd32b7040f89cf3c971df3b9a.tar.bz2 libmatemixer-d1deea43570dfd5bd32b7040f89cf3c971df3b9a.tar.xz |
oss: Improve cleaning code and guard against incorrect use
Diffstat (limited to 'backends/oss/oss-switch.c')
-rw-r--r-- | backends/oss/oss-switch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/oss/oss-switch.c b/backends/oss/oss-switch.c index ba07d36..87ffb90 100644 --- a/backends/oss/oss-switch.c +++ b/backends/oss/oss-switch.c @@ -93,8 +93,7 @@ oss_switch_finalize (GObject *object) swtch = OSS_SWITCH (object); - if (swtch->priv->fd != -1) - close (swtch->priv->fd); + oss_switch_close (swtch); G_OBJECT_CLASS (oss_switch_parent_class)->finalize (object); } |