summaryrefslogtreecommitdiff
path: root/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
diff options
context:
space:
mode:
authorFelix Geyer <fgeyer@debian.org>2014-02-03 18:21:55 +0100
committerFelix Geyer <fgeyer@debian.org>2014-02-03 18:21:55 +0100
commita0f18d47861c16d7dc3a1b7b8f177a076b14051e (patch)
treed16f8bdf2acf053831c59bc3e20acac1004f7e21 /src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
parent1d0b96390adf6a8d181d6daad57b7228e69ec9e0 (diff)
downloadvirtualbox-a0f18d47861c16d7dc3a1b7b8f177a076b14051e.tar.gz
Imported Upstream version 4.3.6-dfsgupstream/4.3.6-dfsg
Diffstat (limited to 'src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp')
-rw-r--r--src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp b/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
index a3806a91e..0c9354cca 100644
--- a/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
+++ b/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
@@ -940,6 +940,7 @@ crServerDispatchVBoxTexPresent(GLuint texture, GLuint cfg, GLint xPos, GLint yPo
if (!pDisplay)
{
crWarning("crServerDisplayGet Failed");
+ CrDemEntryRelease(pEntry);
return;
}
}
@@ -967,13 +968,15 @@ crServerDispatchVBoxTexPresent(GLuint texture, GLuint cfg, GLint xPos, GLint yPo
if (!RT_SUCCESS(rc))
{
crWarning("CrDpEntryRegionsAdd Failed rc %d", rc);
+ /* no need to release anything, as CrDpEntryRegionsAdd would do everything for us as needed */
// if (pEntry)
// CrDemEntryRelease(pEntry);
- return;
}
}
else
{
+ if (pEntry)
+ CrDemEntryRelease(pEntry);
CrDpRegionsClear(pDisplay);
}