(mc_search_regex__process_append_str): fix possible dereference of null pointer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-04-20 18:14:55 +04:00
parent e7252b6603
commit 708f474d1e

View File

@ -596,10 +596,6 @@ mc_search_regex__process_append_str (GString * dest_str, const char *from, gsize
g_string_append_len (dest_str, tmp_string->str, tmp_string->len);
g_string_free (tmp_string, TRUE);
}
else
{
g_string_append_len (dest_str, tmp_str, tmp_string->len);
}
g_free (tmp_str);
}