projects
/
profile
/
ivi
/
libmm-sound.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266c530
)
Do not unref a NULL pointer.
author
Ismo Puustinen
<ismo.puustinen@intel.com>
Wed, 12 Dec 2012 13:04:17 +0000
(15:04 +0200)
committer
Ismo Puustinen
<ismo.puustinen@intel.com>
Mon, 11 Mar 2013 11:50:02 +0000
(13:50 +0200)
server/mm_sound_mgr_pulse.c
patch
|
blob
|
history
diff --git
a/server/mm_sound_mgr_pulse.c
b/server/mm_sound_mgr_pulse.c
index
bcd8a6c
..
9b823f0
100644
(file)
--- a/
server/mm_sound_mgr_pulse.c
+++ b/
server/mm_sound_mgr_pulse.c
@@
-336,9
+336,13
@@
static void sink_info_cb (pa_context *c, const pa_sink_info *i, int is_last, voi
static void pulse_set_default_sink (pulse_info_t * pinfo, char *device_api_name, char *device_bus_name)
{
+ pa_operation *op;
strcpy (pinfo->device_api_name, device_api_name);
strcpy (pinfo->device_bus_name, device_bus_name);
- pa_operation_unref(pa_context_get_sink_info_list(pinfo->context, sink_info_cb, pinfo));
+
+ op = pa_context_get_sink_info_list(pinfo->context, sink_info_cb, pinfo);
+ if (op)
+ pa_operation_unref(op);
}
static int pulse_deinit (pulse_info_t * pinfo)