mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-30 18:41:23 -05:00
utils: Don't leak GMainContextPopDefault contextes
We're creating a new one, making it the default, and on destroy we pop it, but since we're not also destroying it we're leaking the entire context!
This commit is contained in:
committed by
Alexander Larsson
parent
93a7718678
commit
dd6df7589e
@@ -645,7 +645,10 @@ flatpak_main_context_pop_default_destroy (void *p)
|
||||
GMainContext *main_context = p;
|
||||
|
||||
if (main_context)
|
||||
g_main_context_pop_thread_default (main_context);
|
||||
{
|
||||
g_main_context_pop_thread_default (main_context);
|
||||
g_main_context_unref (main_context);
|
||||
}
|
||||
}
|
||||
|
||||
static inline GMainContextPopDefault *
|
||||
|
||||
Reference in New Issue
Block a user