[dconf/release-0.30.1] Free OustandingWatch's path



commit 0c75cdb0bd9b63eca97fa59447c36381a5351248
Author: Guido Günther <agx sigxcpu org>
Date:   Mon Sep 10 15:07:15 2018 +0200

    Free OustandingWatch's path
    
    Otherwise we leak it as can be seen in
    
        https://source.puri.sm/guido.gunther/phosh/-/jobs/1868
    
    This unbreaks phosh's CI build under valgrind.

 engine/dconf-engine.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index dde8c18..06d7dd6 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -974,6 +974,7 @@ dconf_engine_watch_established (DConfEngine  *engine,
                                      ow->path);
 
   dconf_engine_unlock_subscription_counts (engine);
+  g_clear_pointer (&ow->path, g_free);
   dconf_engine_call_handle_free (handle);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]