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

f2404 pushed a commit to branch master
in repository apps/ristretto.

commit 9b09a403e218cbd7c725865d8af6c5925d8861a6
Author: Igor <f2...@yandex.ru>
Date:   Tue Oct 11 19:20:31 2016 +0300

    Fix memory leaks
---
 src/app_menu_item.c | 22 +++++++++++++---------
 src/settings.c      |  6 ++++++
 2 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/src/app_menu_item.c b/src/app_menu_item.c
index b8febbf..530f16d 100644
--- a/src/app_menu_item.c
+++ b/src/app_menu_item.c
@@ -99,17 +99,21 @@ static void
 rstto_app_menu_item_finalize(GObject *object)
 {
     RsttoAppMenuItem *menu_item = RSTTO_APP_MENU_ITEM(object);
-    if (menu_item->priv->app_info)
+    if (menu_item->priv)
     {
-        g_object_unref (menu_item->priv->app_info);
-        menu_item->priv->app_info = NULL;
-    }
-    if (menu_item->priv->file)
-    {
-        g_object_unref (menu_item->priv->file);
-        menu_item->priv->file = NULL;
+        if (menu_item->priv->app_info)
+        {
+            g_object_unref (menu_item->priv->app_info);
+            menu_item->priv->app_info = NULL;
+        }
+        if (menu_item->priv->file)
+        {
+            g_object_unref (menu_item->priv->file);
+            menu_item->priv->file = NULL;
+        }
+        g_free (menu_item->priv);
+        menu_item->priv = NULL;
     }
-
 }
 
 /**
diff --git a/src/settings.c b/src/settings.c
index 768267e..118fd79 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -641,6 +641,12 @@ rstto_settings_dispose (GObject *object)
             settings->priv->navigationbar_position = NULL;
         }
 
+        if (settings->priv->desktop_type)
+        {
+            g_free (settings->priv->desktop_type);
+            settings->priv->desktop_type = NULL;
+        }
+
         if (settings->priv->bgcolor)
         {
             g_free (settings->priv->bgcolor);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to