[Xfce4-commits] <squeeze:master> Don't create an archive object if the mime is not supported

Peter de Ridder noreply at xfce.org
Sun Aug 21 14:42:02 CEST 2011


Updating branch refs/heads/master
         to cf24923e06650368254cfae392027fabaeb70096 (commit)
       from 1a84a6f6815e38d73fe739c6cb29bfbad34a0756 (commit)

commit cf24923e06650368254cfae392027fabaeb70096
Author: Peter de Ridder <peter at xfce.org>
Date:   Sun Aug 21 14:39:26 2011 +0200

    Don't create an archive object if the mime is not supported

 libsqueeze/archive.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/libsqueeze/archive.c b/libsqueeze/archive.c
index 3e584c0..6fb3bab 100644
--- a/libsqueeze/archive.c
+++ b/libsqueeze/archive.c
@@ -194,6 +194,15 @@ lsq_archive_new (GFile *file)
     }
   }
 
+  if (!archive->priv->s_template)
+  {
+#ifdef DEBUG
+    g_debug("not supported");
+#endif
+    g_object_unref(archive);
+    archive = NULL;
+  }
+
   return archive;
 }
 


More information about the Xfce4-commits mailing list