Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
libvisual
libvisual-0.4.0-unref-static.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libvisual-0.4.0-unref-static.diff of Package libvisual
--- libvisual/lv_object.c +++ libvisual/lv_object.c @@ -236,14 +236,12 @@ { visual_log_return_val_if_fail (object != NULL, -VISUAL_ERROR_OBJECT_NULL); - object->refcount--; + if (object->refcount > 0) + object->refcount--; /* No reference left, start dtoring of this VisObject */ - if (object->refcount <= 0) { - object->refcount = 0; - + if (object->refcount == 0) return visual_object_destroy (object); - } return VISUAL_OK; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor