X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Faudio%2Faudio-pulse.c;h=7f511be18034fe74657bad392e25577b828a83c4;hb=8cabf18f972606cd039db9a84366ef338446d12e;hp=89e5c21ccf1e67c8c3859db0ac20422c293369ed;hpb=a4c89089944e8b101ec39ce19dacf400c16aeabf;p=src%2Fapp-framework-binder.git diff --git a/plugins/audio/audio-pulse.c b/plugins/audio/audio-pulse.c index 89e5c21c..7f511be1 100644 --- a/plugins/audio/audio-pulse.c +++ b/plugins/audio/audio-pulse.c @@ -42,7 +42,7 @@ unsigned char _pulse_init (const char *name, audioCtxHandleT *ctx) { /* allocate the global array if it hasn't been done */ if (!dev_ctx_p) - dev_ctx_p = (dev_ctx_pulse_T**) malloc (sizeof(dev_ctx_pulse_T)); + dev_ctx_p = (dev_ctx_pulse_T**) malloc (sizeof(dev_ctx_pulse_T*)); /* create a temporary device, to be held until sink gets discovered */ dev_ctx_pulse_T *dev_ctx_p_t = (dev_ctx_pulse_T*) malloc (sizeof(dev_ctx_pulse_T));