Kaydet (Commit) 052f2542 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Guard against ScopedVclPtr "self assignment" (just in case)

Change-Id: I12bbfbc6701e4e666d30dcf89c17be8f1a5d6858
üst bef247d1
......@@ -316,8 +316,10 @@ public:
*/
void disposeAndReset(reference_type *pBody)
{
VclPtr<reference_type>::disposeAndClear();
VclPtr<reference_type>::set(pBody);
if (pBody != this->get()) {
VclPtr<reference_type>::disposeAndClear();
VclPtr<reference_type>::set(pBody);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment