diff options
author | Luciana Fujii Pontello <luciana@fujii.eti.br> | 2013-04-10 21:02:30 -0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2013-06-05 12:00:46 +0300 |
commit | 1ac15da8b248f7f0ca5d88c0004590b30e0ef4b2 (patch) | |
tree | b4e165845f32ed95f6c0961da912c1316c3c4dc4 | |
parent | b07ed2701e69a2ddf6f4626e9213272af5d0f06c (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.cpp | 2 |
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 |