Hello!
I'm designing a circuit to control a dc motor, now i'm working on the h-bridge and i made the following schematic:

Then i realize that if both buttons are pressed at the same time it would produce a short circuit; every transistor would be in saturation so, vcc would be connected to ground from q1 to q4 and from q2 to q3. Then i made this schematic:

In the schematic above, the logics gates prevent the short circuit, so when both button are pressed the logics gates do not active any transistor. I also added diodes to each transistor to protect then from reverse voltage from the inductive load.
Now, i'm wondering, are there a best way to protect this from circuit short circuit?