diff options
Diffstat (limited to 'cut-n-paste/recent-files/egg-recent-item.c')
-rw-r--r-- | cut-n-paste/recent-files/egg-recent-item.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cut-n-paste/recent-files/egg-recent-item.c b/cut-n-paste/recent-files/egg-recent-item.c index 535e222..bf7fee6 100644 --- a/cut-n-paste/recent-files/egg-recent-item.c +++ b/cut-n-paste/recent-files/egg-recent-item.c @@ -316,6 +316,11 @@ egg_recent_item_get_short_name (const EggRecentItem *item) return NULL; short_name = gnome_vfs_uri_extract_short_name (uri); + if (short_name == NULL) { + gnome_vfs_uri_unref (uri); + return NULL; + } + valid = FALSE; if (strcmp (gnome_vfs_uri_get_scheme (uri), "file") == 0) { |