Index: /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp	(revision 31006)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp	(revision 31007)
@@ -470,5 +470,5 @@
 int VBoxVHWAGlShader::init()
 {
-    int rc = VERR_GENERAL_FAILURE;
+    int rc;
     GLint *length;
     const char **sources;
@@ -481,5 +481,5 @@
         AssertRC(rc);
         if(RT_FAILURE(rc))
-            goto exit;
+            return rc;
         sources[i] = maComponents[i]->contents();
     }
@@ -512,5 +512,5 @@
     vboxglGetShaderInfoLog(mShader, 16300, NULL, pBuf);
     VBOXQGLLOG(("\ncompile log:\n-----------\n%s\n---------\n", pBuf));
-    delete[] pBuf;
+    delete pBuf;
 #endif
 
@@ -518,6 +518,5 @@
     if(compiled)
     {
-        rc = VINF_SUCCESS;
-        goto exit;
+        return VINF_SUCCESS;
     }
 
@@ -528,8 +527,7 @@
     mShader = 0;
 
-exit:
     delete[] length;
     delete[] sources;
-    return rc;
+    return VERR_GENERAL_FAILURE;
 }
 
