Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0f4bb9b

Browse files
committed
Use g_autoptr to release schema reference
1 parent 3f707bf commit 0f4bb9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell/platform/linux/fl_settings_plugin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static void update_settings(FlSettingsPlugin* self) {
101101
g_settings_get_string(self->interface_settings, kDesktopClockFormatKey);
102102
always_use_24hr = g_strcmp0(clock_format, kClockFormat24Hour) == 0;
103103

104-
GSettingsSchema* schema = nullptr;
104+
g_autoptr(GSettingsSchema) schema = nullptr;
105105
g_object_get(self->interface_settings, "settings-schema", &schema, nullptr);
106106
if (g_settings_schema_has_key(schema, kDesktopColorSchemeKey)) {
107107
g_autofree gchar* color_scheme = g_settings_get_string(

0 commit comments

Comments
 (0)