Wed, 19 Jul 2023 23:20:30 -0500
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); }