I wouldnt use just any driftwood or branches you find. What you need is something that comes from a wetland or bog. Too many varieties of wood are not suitable because they are too soft and the water can make them rot and fall apart in just a few months. Wood from a wetland or bog (like mopani or something of that nature) would last. If you use something from the seashore, as mumma said, make sure you clean it well and also make sure there are no 'critters' living in it that could harm your tank.
Why do I love fish? Because every time I stare into the little world I have created for them, every problem I have just floats away....