[Xfce4-commits] [apps/mousepad] 30/45: Fix one-time leak with keyfile settings backend

noreply at xfce.org noreply at xfce.org
Fri Jul 11 13:03:35 CEST 2014


This is an automated email from the git hooks/post-receive script.

mbrush pushed a commit to branch master
in repository apps/mousepad.

commit f95cb2f55644f13e457f746cb2aa9a60f85b228e
Author: Matthew Brush <mbrush at codebrainz.ca>
Date:   Wed Jul 9 18:22:32 2014 -0700

    Fix one-time leak with keyfile settings backend
---
 mousepad/mousepad-settings.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mousepad/mousepad-settings.c b/mousepad/mousepad-settings.c
index 0f48765..caf9801 100644
--- a/mousepad/mousepad-settings.c
+++ b/mousepad/mousepad-settings.c
@@ -138,8 +138,9 @@ mousepad_settings_init (void)
                                                "backend", backend,
                                                "schema-id", mousepad_schema_ids[i],
                                                NULL);
-          /* TODO: need to cleanup backend reference? */
         }
+
+      g_object_unref (backend);
 }
 #else
       for (i = 0; i < MOUSEPAD_NUM_SCHEMAS; i++)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list