]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
device-manager: only call ply_terminal_free
authorFrederic Crozat <fcrozat@suse.com>
Thu, 12 Jun 2014 13:01:37 +0000 (15:01 +0200)
committerFrederic Crozat <fcrozat@suse.com>
Thu, 12 Jun 2014 13:01:37 +0000 (15:01 +0200)
ply_terminal_free will call ply_terminal_close anyway and is guarded
against NULL terminal (ply_terminal_close is not).

src/libply-splash-core/ply-device-manager.c

index e9047086d40eb1807465a04c42cf572aaa3568c5..8dce68b3e87849a3ea8ba65f19d05af4a9458416 100644 (file)
@@ -412,7 +412,6 @@ free_terminal (char                 *device,
 {
         ply_hashtable_remove (manager->terminals, device);
 
-        ply_terminal_close (terminal);
         ply_terminal_free (terminal);
 }