forked from mia/Aegisub
Increment avisynth refcount after successful creation
Originally committed to SVN as r22.
This commit is contained in:
parent
e5043bb738
commit
16729ec5ea
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,7 @@ wxMutex AviSynthWrapper::AviSynthMutex;
|
|||
////////////////////////
|
||||
// AviSynth constructor
|
||||
AviSynthWrapper::AviSynthWrapper() {
|
||||
if (!avs_refcount++) {
|
||||
if (!avs_refcount) {
|
||||
hLib=LoadLibrary(_T("avisynth.dll"));
|
||||
|
||||
if (hLib == NULL)
|
||||
|
@ -74,6 +74,7 @@ AviSynthWrapper::AviSynthWrapper() {
|
|||
if (memoryMax != 0)
|
||||
env->SetMemoryMax(memoryMax);
|
||||
|
||||
avs_refcount++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue