Fix memory leak when sdRef is null
Fix memory leak when sdRef is null

Change-Id: I903683e5d91d96f43bf88b571fac2f2d18f07e25
Reviewed-by: Nicolas Arnaud-Cormos <418d940643b1975d62234ee01246ad4b58904184@kdab.com>

Distrotech/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,xianian/qt-creator,kuba1/qtcreator,malikcjm/qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,colede/qtcreator,danimo/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,omniacreator/qtcreator,syntheticpp/qt-creator,duythanhphan/qt-creator,syntheticpp/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,danimo/qt-creator,syntheticpp/qt-creator,Distrotech/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,malikcjm/qtcreator,malikcjm/qtcreator,maui-packages/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,colede/qtcreator,darksylinc/qt-creator,richardmg/qtcreator,amyvmiwei/qt-creator,maui-packages/qt-creator,duythanhphan/qt-creator,kuba1/qtcreator,kuba1/qtcreator,richardmg/qtcreator,colede/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,danimo/qt-creator,richardmg/qtcreator,farseerri/git_code,martyone/sailfish-qtcreator,Distrotech/qtcreator,Distrotech/qtcreator,farseerri/git_code,syntheticpp/qt-creator,farseerri/git_code,farseerri/git_code,xianian/qt-creator,kuba1/qtcreator,syntheticpp/qt-creator,xianian/qt-creator,duythanhphan/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,omniacreator/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,danimo/qt-creator,syntheticpp/qt-creator,xianian/qt-creator,xianian/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,danimo/qt-creator,farseerri/git_code,danimo/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,syntheticpp/qt-creator,kuba1/qtcreator,kuba1/qtcreator,colede/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,richardmg/qtcreator,Distrotech/qtcreator,richardmg/qtcreator,malikcjm/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,farseerri/git_code,xianian/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,omniacreator/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,darksylinc/qt-creator,malikcjm/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,farseerri/git_code,malikcjm/qtcreator,Distrotech/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code