Commit 4273eeac authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

direct3d9: fix memory leak

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c64f324d
......@@ -340,8 +340,8 @@ error:
if (vd->sys->pool == NULL && pictures) {
for (unsigned i=0;i<picture_count; ++i)
DestroyPicture(pictures[i]);
free(pictures);
}
free(pictures);
return vd->sys->pool;
}
......
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