]> git.sesse.net Git - vlc/commitdiff
Sanity check
authorClément Stenac <zorglub@videolan.org>
Sat, 20 Aug 2005 11:26:48 +0000 (11:26 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 20 Aug 2005 11:26:48 +0000 (11:26 +0000)
modules/gui/skins2/src/theme_loader.cpp

index 035979cedbe38d50429129cb719cb392210ed2c0..02fc74f7f500d83a2b7d3887702e4ed14010aee0 100644 (file)
@@ -576,7 +576,9 @@ int gzclose_frontend( int fd )
 {
     if( currentGzVp != NULL && fd != -1 )
     {
-        return gzclose( currentGzVp );
+        void *toClose = currentGzVp;
+        currentGzVp = NULL;  currentGzFd = -1;
+        return gzclose( toClose );
     }
     return -1;
 }