]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[renderer] close device on failures
authorRay Strode <rstrode@redhat.com>
Tue, 6 Oct 2009 19:31:53 +0000 (15:31 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 6 Oct 2009 19:31:53 +0000 (15:31 -0400)
Before we were just unloading the module without
closing it.

src/libplybootsplash/ply-renderer.c

index 08a246ba4647bb1f544756f3b877700f7ad18deb..f7f3c906263c117fbdce58fbb945f64a268053a2 100644 (file)
@@ -247,6 +247,7 @@ ply_renderer_open (ply_renderer_t *renderer)
         {
           ply_trace ("could not query rendering device for plugin %s",
                      plugin_path);
+          ply_renderer_close_device (renderer);
           ply_renderer_unload_plugin (renderer);
           continue;
         }
@@ -255,6 +256,7 @@ ply_renderer_open (ply_renderer_t *renderer)
         {
           ply_trace ("could not map renderer to device for plugin %s",
                      plugin_path);
+          ply_renderer_close_device (renderer);
           ply_renderer_unload_plugin (renderer);
           continue;
         }