mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Use gsl::finally() instead of base::scope_guard().
This commit is contained in:
@@ -247,7 +247,7 @@ QString GetServerName() {
|
||||
}
|
||||
|
||||
gchar *name = nullptr;
|
||||
auto guard = base::scope_guard([&name] {
|
||||
auto guard = gsl::finally([&name] {
|
||||
if (name) Libs::g_free(name);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user