calendar-server: Fix a memory leak
App will take ownership of the location string when the timezone changes, but not when there was no change - free the memory in that case. https://bugzilla.gnome.org/show_bug.cgi?id=748226
This commit is contained in:
parent
8c51f0076f
commit
f5e1dc86cd
@ -526,6 +526,10 @@ app_update_timezone (App *app)
|
|||||||
app->timezone_location = location;
|
app->timezone_location = location;
|
||||||
print_debug ("Using timezone %s", app->timezone_location);
|
print_debug ("Using timezone %s", app->timezone_location);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_free (location);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user