diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-27 10:32:41 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-27 10:32:41 +0100 |
commit | 918507d390cae1badb168bee2a196a60d2d424e3 (patch) | |
tree | 00d789445047743e05c4a9bbfb915136d18f0024 /plugins | |
parent | 31cc337f6488c59322882656510c4ef079e7891d (diff) |
gtkui: fixed crash when artwork plugin is not available
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/coverart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/coverart.c b/plugins/gtkui/coverart.c index a1180415..ecbb1277 100644 --- a/plugins/gtkui/coverart.c +++ b/plugins/gtkui/coverart.c @@ -378,6 +378,9 @@ cover_art_free (void) { GdkPixbuf * cover_get_default_pixbuf (void) { + if (!coverart_plugin) { + return NULL; + } if (!pixbuf_default) { GError *error = NULL; const char *defpath = coverart_plugin->get_default_cover (); |