changeset 4429:f207e3099f7f

Return in case the desktop file cannot be loaded.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Apr 2008 12:00:51 +0300
parents fc639d2e2b7c
children 72443cd1061a
files src/libeggsmclient/eggdesktopfile.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/libeggsmclient/eggdesktopfile.c	Wed Apr 09 11:48:10 2008 +0300
+++ b/src/libeggsmclient/eggdesktopfile.c	Wed Apr 09 12:00:51 2008 +0300
@@ -1343,6 +1343,8 @@
       g_warning ("Could not load desktop file '%s': %s",
 		 desktop_file_path, error->message);
       g_error_free (error);
+      G_UNLOCK (egg_desktop_file);
+      return;
     }
 
   /* Set localized application name and default window icon */