Changeset 92a9c68


Ignore:
Timestamp:
2010-04-08T21:56:27Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7a90d02
Parents:
5b9b2b6
Message:

Fixed 2-byte memory leak in set_eval_charset().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r5b9b2b6 r92a9c68  
    6363                return NULL;
    6464        }
     65       
     66        /* Do a test iconv to see if the user picked an IRC-compatible
     67           charset (for example utf-16 goes *horribly* wrong). */
    6568        if( ( test = g_convert_with_iconv( " ", 1, oc, NULL, &test_bytes, NULL ) ) == NULL ||
    6669            test_bytes > 1 )
     
    7275                return NULL;
    7376        }
     77        g_free( test );
     78       
    7479        if( ( ic = g_iconv_open( "utf-8", value ) ) == (GIConv) -1 )
    7580        {
Note: See TracChangeset for help on using the changeset viewer.