summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuciana Fujii Pontello <luciana@fujii.eti.br>2013-04-10 21:02:30 -0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-05 12:00:46 +0300
commit1ac15da8b248f7f0ca5d88c0004590b30e0ef4b2 (patch)
treeb4e165845f32ed95f6c0961da912c1316c3c4dc4
parentb07ed2701e69a2ddf6f4626e9213272af5d0f06c (diff)
qt5: objectstore: Fix refcount problem on Qt5 port
We should test if the value was already zero, and not try to unref it and then test.
-rw-r--r--src/QGst/objectstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/QGst/objectstore.cpp b/src/QGst/objectstore.cpp
index 236a733..156f4d6 100644
--- a/src/QGst/objectstore.cpp
+++ b/src/QGst/objectstore.cpp
@@ -71,7 +71,7 @@ bool ObjectStore::take(const void * ptr)
(gs->refCount[ptr]).deref();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
- if (!gs->refCount[ptr].deref()) {
+ if (!gs->refCount[ptr].load()) {
#else
if (!gs->refCount[ptr]) {
#endif