freetype: Prevent creating font with NULL path
authorMarvin Scholz <epirat07@gmail.com>
Sat, 17 Jun 2017 15:04:17 +0000 (17:04 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Mon, 19 Jun 2017 12:32:37 +0000 (14:32 +0200)
modules/text_renderer/freetype/fonts/darwin.c

index c23ac8a..06dec79 100644 (file)
@@ -177,6 +177,8 @@ const vlc_family_t *CoreText_GetFamily(filter_t *p_filter, const char *psz_famil
                 FREENULL(path);
                 continue;
             }
+        } else {
+            continue;
         }
 
         addNewFontToFamily(p_filter, iter, path, p_family);