does this crash or is this better, mika?
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 15:51:45 +0000 (15:51 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 15:51:45 +0000 (15:51 +0000)
src/preview.c

index d4bc4f8405a7ce05624c3c13e61b7a931f56f22f..f2b7e006c1f3c8fe8e6149235402f8994670e346 100644 (file)
@@ -476,9 +476,11 @@ GdkPixbuf *preview_theme(const gchar *name, const gchar *titlelayout,
 
     gint w, h;
 
-    RrTheme *theme = RrThemeNew(rrinst, name,
+    RrTheme *theme = RrThemeNew(rrinst, name, FALSE,
                                 active_window_font, inactive_window_font,
                                 menu_title_font, menu_item_font, osd_font);
+    if (!theme)
+        return NULL;
 
     menu = preview_menu(theme);