Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 07889aa078f2dd513f096cfda00d1d65 > files > 2

libfm-1.2.3-4.mga5.src.rpm

From eaeebfe47253844e5d5ca9e8ab6109b5ec0a9cbc Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Thu, 23 Oct 2014 20:27:58 +0300
Subject: [PATCH] Additional fix after previous commit.

---
 src/base/fm-templates.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/base/fm-templates.c b/src/base/fm-templates.c
index 062b606..cfc7b82 100644
--- a/src/base/fm-templates.c
+++ b/src/base/fm-templates.c
@@ -682,7 +682,8 @@ static void on_dir_changed(GFileMonitor *mon, GFile *gf, GFile *other,
                 g_warning("could not guess type of template %s, ignoring it",
                           basename);
             }
-            fm_mime_type_unref(mime_type);
+            if (G_LIKELY(mime_type))
+                fm_mime_type_unref(mime_type);
         }
         else
             g_debug("templates monitor: duplicate file %s", basename);
-- 
2.1.3