mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +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
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "module.h"
|
||||
#include <irssi/src/core/misc.h>
|
||||
#include <irssi/src/core/levels.h>
|
||||
|
||||
/* the order of these levels must match the bits in levels.h */
|
||||
|
|
@ -169,8 +170,7 @@ char *bits2level(int bits)
|
|||
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);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue