X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=cut-n-paste%2Frecent-files%2Fegg-recent-item.c;h=bf7fee6c636d153d55d45d64b76bd6ed3c639356;hb=a54bf6cacb65df7cf50bf3e2d044c9dc4537618a;hp=535e2227779aacff79e0b6819df530a0859ee90b;hpb=bb24964d2d9593e35ff5693129d8cb0a688be47b;p=evince.git diff --git a/cut-n-paste/recent-files/egg-recent-item.c b/cut-n-paste/recent-files/egg-recent-item.c index 535e2227..bf7fee6c 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) {