Skip to content

Commit

Permalink
Fix #354, Rename impl__SrsAutoFree to impl_SrsAutoFree
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 25, 2018
1 parent a61bfb2 commit 1e054d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions trunk/src/core/srs_core_autofree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
* where the char* pstr = new char[size].
*/
#define SrsAutoFree(className, instance) \
impl__SrsAutoFree<className> _auto_free_##instance(&instance, false)
impl_SrsAutoFree<className> _auto_free_##instance(&instance, false)
#define SrsAutoFreeA(className, instance) \
impl__SrsAutoFree<className> _auto_free_array_##instance(&instance, true)
impl_SrsAutoFree<className> _auto_free_array_##instance(&instance, true)
template<class T>
class impl__SrsAutoFree
class impl_SrsAutoFree
{
private:
T** ptr;
Expand All @@ -59,12 +59,12 @@ class impl__SrsAutoFree
/**
* auto delete the ptr.
*/
impl__SrsAutoFree(T** p, bool array) {
impl_SrsAutoFree(T** p, bool array) {
ptr = p;
is_array = array;
}

virtual ~impl__SrsAutoFree() {
virtual ~impl_SrsAutoFree() {
if (ptr == NULL || *ptr == NULL) {
return;
}
Expand Down

0 comments on commit 1e054d2

Please sign in to comment.