audio: memory leak code review
commite6cd5402ed48e5c57477222fe097f700e25d2955
authorStefan Becker <stefan.becker@nokia.com>
Mon, 12 Jul 2010 05:36:38 +0000 (12 08:36 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Mon, 12 Jul 2010 05:36:38 +0000 (12 08:36 +0300)
tree8a0cedde613776a1a19802301ed44f1eb0f09e50
parent742d09c652f20b0dcb4ddd57ebc57ee150839e7f
audio: memory leak code review

Although not explicitly documented: gchar * return values from purple_media_xxx
API functions need to be g_free'd(). Add g_free() in sipe-media.c where
necessary.

Also replaced g_strdup_printf() + g_string_append() combinations sipe-media.c
with g_string_append_printf().

As I can't verify the media code in my environment these changes are untested.
src/api/sipe-backend.h
src/core/sipe-media.c
src/purple/purple-media.c