Fix a warn_unused_result in codec.c

Wed, 19 Jul 2023 23:20:30 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 19 Jul 2023 23:20:30 -0500
changeset 42248
4c20358e4c4e
parent 42247
faf4b46f690c
child 42249
fc7897cb74a5

Fix a warn_unused_result in codec.c

Testing Done:
Compiled and verified the warning was gone.

Reviewed at https://reviews.imfreedom.org/r/2529/

libpurple/media/codec.c file | annotate | diff | comparison | revisions
--- a/libpurple/media/codec.c	Wed Jul 19 18:13:10 2023 -0500
+++ b/libpurple/media/codec.c	Wed Jul 19 23:20:30 2023 -0500
@@ -362,7 +362,6 @@
 	PurpleMediaCodecPrivate *priv;
 	GString *string = NULL;
 	GList *item;
-	gchar *charstring;
 	const gchar *media_type_str = NULL;
 
 	if (codec == NULL) {
@@ -391,9 +390,6 @@
 				param->key, (gchar *)param->value);
 	}
 
-	charstring = string->str;
-	g_string_free (string, FALSE);
-
-	return charstring;
+	return g_string_free(string, FALSE);
 }
 

mercurial