* mu-str: fix potential leak

This commit is contained in:
djcb 2013-04-07 16:04:20 +03:00
parent a8489dc048
commit f19500a1eb
1 changed files with 2 additions and 1 deletions

View File

@ -779,9 +779,10 @@ mu_str_convert_to_utf8 (const char* buffer, const char *charset)
if (!utf8) {
g_warning ("%s: conversion failed from %s: %s",
__FUNCTION__, charset, err ? err->message : "");
g_clear_error (&err);
}
g_clear_error (&err);
return utf8;
}