mirror of https://github.com/djcb/mu.git
* mu-str: fix potential leak
This commit is contained in:
parent
a8489dc048
commit
f19500a1eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue