mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
replace str->str & g_string_free with g_string_free_and_steal
solving unused warning in GLib 2.76
This commit is contained in:
parent
995e77c30d
commit
8eee36d1ea
20 changed files with 73 additions and 78 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "module.h"
|
||||
#include <irssi/src/core/signals.h>
|
||||
#include <irssi/src/core/settings.h>
|
||||
#include <irssi/src/core/misc.h>
|
||||
|
||||
#include <irssi/src/irc/core/irc-commands.h>
|
||||
#include <irssi/src/irc/core/irc-servers.h>
|
||||
|
|
@ -443,8 +444,7 @@ char *modes_join(IRC_SERVER_REC *server, const char *old,
|
|||
}
|
||||
g_free(dup);
|
||||
|
||||
modestr = newmode->str;
|
||||
g_string_free(newmode, FALSE);
|
||||
modestr = g_string_free_and_steal(newmode);
|
||||
return modestr;
|
||||
}
|
||||
|
||||
|
|
@ -755,8 +755,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item,
|
|||
}
|
||||
|
||||
if (str->len > 0) g_string_truncate(str, str->len-1);
|
||||
ret = str->str;
|
||||
g_string_free(str, FALSE);
|
||||
ret = g_string_free_and_steal(str);
|
||||
g_strfreev(matches);
|
||||
cmd_params_free(free_arg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue